4

I am scratching my head on what the standard workflow is for opening, editing and executing a scripts directly from within the ipython notebook? I know that you can use %edit from ipython terminal but this doesn't seem to work from notebook.

thank you

1 Answer 1

2

in ipython 1.1.0 I just ran "!gvim a.py" in the notebook which opened the gvim editor in a window. After saving the edits into a.py file, I was able to successfully execute "%run a.py"

Sign up to request clarification or add additional context in comments.

4 Comments

Interesting. When I try to run !vi a.py in the notebook it renders the script inside the notebook in a broken and uneditable format rather than opening the script in my vi editor in the terminal.
Ah probably you need an editor that brings up a separate window. Notebook does not allow interactive edits.
!gvim locks the kernel for me until vim closes (using a batch in Windows). Any clue on how run and detach with a bang?
Can't edit comments? Here is why I needed to start cmd /c ...: stackoverflow.com/a/154090/770443

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.