You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One annoyance I've encountered is that jupyter notebooks in VSCode cache global variables. This unnecessarily bloats your results.tex and might even lead to bigger issues if variables are thought to be redefined but a small spelling mistake leads to two slightly different variable names to be written to results.tex.
Solutions could be:
Find out if one can turn the caching behavior off in Jupyter notebooks in VSCode. However, this basically gets rid of the gist of the Jupyter notebooks in the first place as we want to have variables available in subsequent cells. So, this is not really an option.
Basically, we want to detect if variables are not defined anymore, e.g. they were defined in a cell but got removed from the cell, such that the next cell execution does not redefine that variable. Maybe there are specific settings in VSCode to then get rid of the old variable. Or maybe we have to write our own parsing logic to detect these cases. One has to also take into account that the user might have specified the variable in another cell in the meantime such that it shouldn't go out of scope.
One simple and easy fix is to restart the Python kernel used for the Jupyter notebook and then re-run all cells consecutively via one click. While this is a valid option I use frequently, it might take too long in bigger projects where cells have more complex tasks.
The text was updated successfully, but these errors were encountered:
One annoyance I've encountered is that jupyter notebooks in VSCode cache global variables. This unnecessarily bloats your
results.tex
and might even lead to bigger issues if variables are thought to be redefined but a small spelling mistake leads to two slightly different variable names to be written toresults.tex
.Solutions could be:
One simple and easy fix is to restart the Python kernel used for the Jupyter notebook and then re-run all cells consecutively via one click. While this is a valid option I use frequently, it might take too long in bigger projects where cells have more complex tasks.
The text was updated successfully, but these errors were encountered: