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

Add logic to deal with ipython magic commands #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jimmykaiser
Copy link

iPython magic commands like %matplotlib inline are useful inside of an Jupyter notebook but raise errors when run in a Python script. These two commits add logic to comment out magic commands starting with % when converting from .ipynb to .py. Magic commands are uncommented when converting back to .ipynb. Let me know what you think!

@dbrakman
Copy link

dbrakman commented Jun 4, 2019

Works for me!

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.

2 participants