Ask Your Question
0

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

asked 2020-10-14 03:37:28 +0100

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-10-14 08:25:54 +0100

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...

edit flag offensive delete link more

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: 2020-10-14 03:37:28 +0100

Seen: 201 times

Last updated: Oct 14 '20