New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users should be able to copy notebook input and output #439

Closed
certik opened this Issue May 13, 2011 · 4 comments

Comments

Projects
None yet
2 participants
@certik

certik commented May 13, 2011

Currently, if you select some input and output, click CTRL+C, and paste it into an email, you get:

In [1]:

In [3]:

In [4]:

Out[4]:
x
In [5]:

Out[5]:
189x3
In [6]:

---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)
/home/certik1/ in ()
----> 1 1/0

ZeroDivisionError: integer division or modulo by zero
In [6]:

So the outputs are copied, but the inputs are not. I don't know how to fix this currently, but this should be fixed, or provide some alternative way to copy notebook contents.

@ellisonbg

This comment has been minimized.

Show comment
Hide comment
@ellisonbg

ellisonbg May 16, 2011

Member

Hmm, on the Mac, I get both input and output on FF and Chrome. Can you check this again with the codemirror branch?

Member

ellisonbg commented May 16, 2011

Hmm, on the Mac, I get both input and output on FF and Chrome. Can you check this again with the codemirror branch?

@ghost ghost assigned ellisonbg May 16, 2011

@certik

This comment has been minimized.

Show comment
Hide comment
@certik

certik May 16, 2011

With the latest codemirror, on linux + Chrome, I get:

In [1]:

1+1
Out[1]:
2
In [2]:

2-2
Out[2]:
0
In [5]:

print x
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/home/certik1/ in ()
----> 1 print x

NameError: name 'x' is not defined
In [4]:

So the codemirror fixes it. I will keep this issue open until codemirror lands in the htmlnotebook branch.

certik commented May 16, 2011

With the latest codemirror, on linux + Chrome, I get:

In [1]:

1+1
Out[1]:
2
In [2]:

2-2
Out[2]:
0
In [5]:

print x
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/home/certik1/ in ()
----> 1 print x

NameError: name 'x' is not defined
In [4]:

So the codemirror fixes it. I will keep this issue open until codemirror lands in the htmlnotebook branch.

@ellisonbg

This comment has been minimized.

Show comment
Hide comment
@ellisonbg

ellisonbg May 17, 2011

Member

Great, glad that fixed it!

On Mon, May 16, 2011 at 4:53 PM, certik
reply@reply.github.com
wrote:

With the latest codemirror, on linux + Chrome, I get:

In [1]:

1+1
Out[1]:
2
In [2]:

2-2
Out[2]:
0
In [5]:

print x
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/home/certik1/ in ()
----> 1 print x

NameError: name 'x' is not defined
In [4]:

So the codemirror fixes it. I will keep this issue open until codemirror lands in the htmlnotebook branch.

Reply to this email directly or view it on GitHub:
#439 (comment)

Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger@calpoly.edu and ellisonbg@gmail.com

Member

ellisonbg commented May 17, 2011

Great, glad that fixed it!

On Mon, May 16, 2011 at 4:53 PM, certik
reply@reply.github.com
wrote:

With the latest codemirror, on linux + Chrome, I get:

In [1]:

1+1
Out[1]:
2
In [2]:

2-2
Out[2]:
0
In [5]:

print x
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/home/certik1/ in ()
----> 1 print x

NameError: name 'x' is not defined
In [4]:

So the codemirror fixes it. I will keep this issue open until codemirror lands in the htmlnotebook branch.

Reply to this email directly or view it on GitHub:
#439 (comment)

Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger@calpoly.edu and ellisonbg@gmail.com

@ellisonbg

This comment has been minimized.

Show comment
Hide comment
@ellisonbg

ellisonbg May 17, 2011

Member

The codemirror branch is merge, so I am closing this.

Member

ellisonbg commented May 17, 2011

The codemirror branch is merge, so I am closing this.

@ellisonbg ellisonbg closed this May 17, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment