Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

%edit magic command not working in jupyter notebook

I can't work out how to get the %edit command working in Jupyter Notebook.

I type

%edit

and it returns with

IPython will make a temporary file named: /var/folders/dk/.../ipython_edit_JbS9ZC.py

My %EDITOR environment variable is

'EDITOR': '/usr/local/bin/subl -w'

I must be doing something wrong.

like image 819
pheon Avatar asked Feb 24 '26 08:02

pheon


1 Answers

This feature issue appears to be well-known : https://github.com/ipython/ipython/issues/5879

A possible solution might be to use : Edit IPython cell in an external editor

Or you can embed the notebook in emacs (I don't use emacs) : https://github.com/tkf/emacs-ipython-notebook

like image 57
Labo Avatar answered Feb 27 '26 03:02

Labo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!