jupytext icon indicating copy to clipboard operation
jupytext copied to clipboard

Some outpus of jupyter notebook disappear after I modified the python code.

Open coderelease opened this issue 3 years ago • 1 comments

I'm a long time user of jupytext component, and I try to use the jupytext command-line to sync between my python code and jupyter notebook on save in pycharm. So, I set command-line like this:

jupytext --sync FILENAME --update-metadata SOMETHING_METADATA

and then I run the jupyter notebook generated just now, and I back the pycharm to add some comments.

when I turn back to the jupyter notebook, I found that there are some outputs disappeared around the modified code line.

I tried, It works fine in jupytext notebook in jupyter. I also inspected the jupyter notebook source, the source indicate those outputs are removed indeed.

so I make the conclusion that the jupytext notebook just is a facial copy of jupyter. When I modified python code, executed the jupytext sync command-line, the jupyter notebook is actually not right.

coderelease avatar Jun 22 '22 10:06 coderelease

Hi @bitekong , I am afraid there are too many different programs being used here! Do you think you could describe your sample notebook, and the exact sequence of operations (in which program do you edit the notebook, when do you save it, when do you reload it, etc...) Also I'll need to know what you change on the metadata, as you suggest this might have a relation to the disappearing outputs.

mwouts avatar Jul 02 '22 21:07 mwouts