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.

Is there any difference between opening a jupytext file vs. paired ipython notebook in jupyter?

See original GitHub issue

Sorry to pollute your issue tracker (this isn’t a bug, but I can’t find the answer in the documentation). In jupyter, I can open both jupytext python scripts and ipython notebook files as “notebooks”. For example (note the file extensions):

Screen Shot 2020-07-06 at 3 54 25 PM

If I open a jupytext .py script and save it in jupyter, a paired .ipynb file is created – but the .py file name still appears at the head of the tab rather than the .ipynb file.

Is there any functional difference between “opening” the jupytext .py script vs. the paired .ipynb notebook file in jupyter? Would “opening” the actual .ipynb file result in better performance for any reason?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mwoutscommented, Jul 31, 2020

Oh sorry @lukelbd I missed your question. Thanks for the reminder!

If you are working with an unpaired .py file, since there is no .ipynb file, where is the cell output data physically stored?

I think it is not stored anywhere (other than in the memory of your web browser). I think the outputs are also transmitted back to the server over the network (so you should not expect performance improvements there), but the server ignores them.

And under what circumstances can jupyter “forget” the cell output data?

In my experience, the cell outputs are lost as soon as you reload the notebook.

0reactions
mwoutscommented, Jul 31, 2020

Great idea! I’ll do that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Paired notebooks - Jupytext documentation - Read the Docs
When the notebook is refreshed in Jupyter, the input cells are read from the text file, and the output cells from the .ipynb...
Read more >
Version Control With Jupyter Notebook | by Shinichi Okada
Jupyter notebook generates files that contain metadata, source code, formatted text, and rich media. Only one word of change results in ...
Read more >
Jupyter notebooks as Markdown documents or Python scripts
Jupytext is a Jupyter plugin that allows you to convert Jupyter notebooks to Markdown or Python script files and back again.
Read more >
Jupytext: The hack-free way to use Jupyter notebooks with git
As mentioned previously, I'm a big fan of Jupyter Notebook/Lab. ... files instead of just opening them in any text editor the way...
Read more >
Using IPython / Jupyter Notebooks Under Version Control
Open the notebook that you want to version control, and pair it to a Markdown file (or a Script) using the Jupytext Menu...
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