That -
basically, Jupyter stores all session data in type files .ipynb
. So it’s these files that you have to keep versioned.
For this it is important to stop the Jupyter server (I do not know his mechanisms very deep, it may be that just close the kernel is enough) - a good indicative will be the date-and-time of the last modification of your file .ipynb
.
You say the document is already in the repository, so I guess it is . ipynb that interests you.
Terminal (cmd
in Windows), you have to type two git commands: first a "commit" followed by a push:
git commit [nome_do_arquivo].ipynb -m "[descrição curta das alterações]"
git push
If everything is ok, both commands will say this on your exit.
if the file is not versioned
If the file .ipynb
not yet in the repository, it must be added before, with the command git add
:
git add [nome_do_arquivo].ipynb
Then the commands are commit
and push
will function as above.
Maybe the question is how to use git. If I’m not mistaken the jupyter file . ipynb works like another . txt, . c, . py, etc..
– klaus