luk400 / vim-jukit

Jupyter-Notebook inspired Neovim/Vim Plugin
MIT License
586 stars 23 forks source link

changing cell id's #121

Open Timoyoungster opened 3 hours ago

Timoyoungster commented 3 hours ago

Are cell id's newly generated or changed in any way when converting a notebook back to ipynb files?

Because I have a class, where they use specific cell id's to inject testing code into the notebook to grade the assignments and I just got 0 points on the first one because "they could not run their tests". (Apparently because I copied the notebook or sth.🤷‍♂️)

(Don't ank me why they make it so unnecessarily rigid and don't just add cells afterwards, but it's what I'll have to deal with for the current semester :(

Timoyoungster commented 2 hours ago

Oh, I just realized it not only removes the id field, it also completely replaces the metadata.

Is there any chance I could use jukit to edit the code within the cells, without changing anything else within the notebook? (e.g. metadata, cell id's, ...; I don't even need to create new cells, just need to add my code and run it)