Skip to content
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
Closed

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

certik opened this issue May 13, 2011 · 4 comments
Assignees
Milestone

Comments

@certik
Copy link

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
Copy link
Member

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
Copy link
Author

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
Copy link
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

@ellisonbg
Copy link
Member

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

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

No branches or pull requests

2 participants