Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nbrun in notebooks with non-code cells. #4634

Merged
merged 2 commits into from Dec 4, 2013

Conversation

damianavila
Copy link
Member

When you try to run notebooks with the run magic:

% run my_notebook.ipynb

if the notebook contains non-code cells, it fails...
So I made a little fix to filter the code cells from the notebook passed as argument.

@minrk
Copy link
Member

minrk commented Dec 4, 2013

definitely the right thing to do, thanks. Can you add a test (or add non-code cells to an existing test notebook)?

@damianavila
Copy link
Member Author

I fix the test to include a text cell, let me know if it is enough...

@damianavila
Copy link
Member Author

Travis is failing but not in core... probably not related with this PR... but who knows? 😉

@minrk
Copy link
Member

minrk commented Dec 4, 2013

travis looks fine now.

minrk added a commit that referenced this pull request Dec 4, 2013
Fix nbrun in notebooks with non-code cells.
@minrk minrk merged commit 8426c9d into ipython:master Dec 4, 2013
@damianavila damianavila deleted the fix_nbrun branch December 4, 2013 08:50
@damianavila
Copy link
Member Author

Just for reference, I realized the problem writing this post: http://www.damian.oquanta.info/posts/dont-write-scripts-just-write-ipyscripts.html
Now that example "ipyscript" will work without any changes 😉.
Thanks!

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Fix nbrun in notebooks with non-code cells.
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.

None yet

2 participants