question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

convert notebooks to percent python scripts retain jupyter magic

See original GitHub issue

after jupytext --to py:percent notebook.ipynb python script still have uncommented ipython magic. Is it expected behaviour? I am using jupytext 0.8.4

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
mwoutscommented, Nov 12, 2018

I see! Thanks for your feedback. Is it ok for you if I update the documentation, and add a comment_magic argument to jupytext command line?

1reaction
mwoutscommented, Nov 25, 2018

Jupyter magics commands will now be commented per default in the percent format (Hydrogen users will have the comment-magics argument on the command line). @danieltomasz , would you like to test the next release candidate, available on pypi?

pip install jupytext==0.8.6rc0
Read more comments on GitHub >

github_iconTop Results From Across the Web

Notebook formats - Jupytext documentation - Read the Docs
By default, Jupyter magics are commented in the percent representation. If you run the percent scripts in Hydrogen, use the hydrogen format, a...
Read more >
How do I convert a IPython Notebook into a Python file via ...
Is there a way to do the reverse i.e convert from a python script to a notebook. For ex - having some specialized...
Read more >
Jupytext 1.0 highlights - Towards Data Science
A Jupyter Notebook represented as a Python script (light or percent format), Markdown, and R Markdown. Jupytext will allow you to:.
Read more >
Magic Commands - Problem Solving with Python
The %load command loads a Python module, webpage or file into a Jupyter notebook. If there is a file called hello.py in the...
Read more >
Tutorial: Advanced Jupyter Notebooks - Dataquest
If you're doing data science in Python, notebooks are a powerful tool. ... Line magics start with a percent character % , and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found