Skip to content

support notebooks in %run#4452

Merged
takluyver merged 4 commits intoipython:masterfrom
minrk:nbrun
Nov 18, 2013
Merged

support notebooks in %run#4452
takluyver merged 4 commits intoipython:masterfrom
minrk:nbrun

Conversation

@minrk
Copy link
Copy Markdown
Member

@minrk minrk commented Oct 28, 2013

Simple enough - just generalized safe_exec_ipy a bit to support a sequence of cells rather than just one cell (the .ipy behavior).

I think we have an issue open for this, but I can't seem to find it. (closes #1675 -pi)

@takluyver
Copy link
Copy Markdown
Member

Looks sensible to me. I think it should have a test, though.

@minrk
Copy link
Copy Markdown
Member Author

minrk commented Oct 28, 2013

It certainly should. I'm not in a great rush, since everything should be waiting for the single-codebase PR.

@damianavila
Copy link
Copy Markdown
Member

Nice idea... and very useful, I think.

@ivanov
Copy link
Copy Markdown
Member

ivanov commented Oct 28, 2013

#1675 is certainly related to this, so this PR should close #1675 when it lands

@ivanov
Copy link
Copy Markdown
Member

ivanov commented Oct 28, 2013

minrk#9 has a commit to add .ipynb filename completion to %run

@Carreau
Copy link
Copy Markdown
Member

Carreau commented Nov 5, 2013

+1 once test added.

@takluyver
Copy link
Copy Markdown
Member

@minrk , I think this is just waiting for a test now.

@minrk
Copy link
Copy Markdown
Member Author

minrk commented Nov 18, 2013

Sorry, forgot about it. Test should be there now.

minrk and others added 2 commits November 18, 2013 11:56
Simple enough - just generalized safe_exec_ipy a bit to support a sequence of cells rather than just one cell (the .ipy behavior).

I think we have an issue open for this, but I can't seem to find it.
@takluyver
Copy link
Copy Markdown
Member

We actually have a separate file, test_run, for testing the run magic. Do you want to add your tests there?

@minrk
Copy link
Copy Markdown
Member Author

minrk commented Nov 18, 2013

bah, that's my lazy searching. I'll move them, yes.

@minrk
Copy link
Copy Markdown
Member Author

minrk commented Nov 18, 2013

test moved.

@takluyver
Copy link
Copy Markdown
Member

Great. Tests passing, and the code still looks good. Merging.

@takluyver
Copy link
Copy Markdown
Member

Actually - could you just add a quick whatsnew entry?

@takluyver
Copy link
Copy Markdown
Member

Lovely. Really merging now.

takluyver added a commit that referenced this pull request Nov 18, 2013
support notebooks in %run
@takluyver takluyver merged commit b374d27 into ipython:master Nov 18, 2013
@minrk minrk deleted the nbrun branch March 31, 2014 23:36
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add file_to_run=file.ipynb capability to the notebook

5 participants