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

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

Projects

None yet

2 participants

@certik

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
IPython member

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

@ellisonbg ellisonbg was assigned May 16, 2011
@certik

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
IPython member
@ellisonbg
IPython member

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