Open wwitzel opened 3 years ago
Another issue is that it seems to be writing extra cell executions (e.g., garbage collection and resetting) to the nb object and then saving those to the notebooks. This may relate to our "self.nb = nb" change. For now, @wdcraft01 , just comment out the lines in build.py where it saves changed notebooks: if new_nb_str != nb_str:
with open(notebook_path, 'wt', encoding='utf8') as f:
f.write(new_nb_str)
That way, you can do a build --essential for your purposes but not have the headache of your notebooks getting garbled. It will still make the changes to the "database" (__pv_it
directories) that are needed.
This was a problem for @wdcraft01 when he upgraded his Python version (with a new nbconvert version). We hacked build.py to get it work for him, but we need to fix it properly. The hacks we made to get this to execute were: