Images in the output cells are not being reflected to python code
See original GitHub issueWhat is the issue?
When I run jupytext --to py my_notebook.ipynb
to convert a notebook as a python file, it removes the information from the output cells (in this case some images are there as a hex string) and thus when I convert them back to ipynb using jupytext --to notebook my_notebook.py
the produced .ipynb is not the same as the one I started with (it misses the images).
Which version am I using?
version - 1.6.0 (Installed from pip)
How to reproduce this?
I am attaching a .ipynb file with this issue report. If you do exactly what I said above (convert it to python and then convert it back to .ipynb) then you will see the final .ipynb file misses in the inline (output cell) images that the original .ipynb had. (because of Guthub’s issue of not letting me upload direct .ipynb files, I had zipped the original file)
Additional information
I am very new to jupytext. I tried to look online and in the documentation but could not find such a problem or anything like that. I am not sure what am I missing here. But maybe something. Please let me know if it is something trivial that I may have missed. In that case, I am sorry.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Great news! And thank you for your feedback. much appreciated!
Agreed! The
.py
or.md
files don’t include the outputs - we don’t want them to be as big as the.ipynb
files.But again,
jupytext --sync
orjupytext --to ipynb --update
will preserve the outputs that exist in the.ipynb
file, so it is indeed possible to work on the.py
file, and propagate that work to the.ipynb
file without loosing the outputs.