First time here? Check out the FAQ!

Ask Your Question
0

How would I transfer code from a notebook to this forum?

asked 4 years ago

erw1 gravatar image

From within a Jupyter notebook, if I do Edit > Copy Cells, followed by Edit > Paste Cells Above (or Below), it works. But Edit > Copy Cells does not copy to the clipboard in 'code mode'... It works in 'markdown mode', but the demarcation between the cell input/output is not clear. There has got to be a simple way to transfer a notebook's content to this forum to illustrate a question. What is it?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 4 years ago

Emmanuel Charpentier gravatar image

Currently, you can copy code text from a code cell and paste it in this forum's editor. (And no, there is no better way. Feel free to propose a patch to the server's source if you think it should...).

But please, please, please format it as code (use the "101010" button (or C-k) on the selected text) : otherwise, the code is treated as paragraph text, and becomes illegible : no newlines, no tabs, * switches to italics, und so weiter...

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 4 years ago

Seen: 229 times

Last updated: Oct 14 '20