Closed yangtzech closed 1 year ago
Switch from VSCode notebook to Jupyter notebook and after several times of *.ipynb couldn't be saved
, finally it is saved and exported.
Hi @yangtzech,
It's great to hear you want to contribute to tsai
.
I've looked into the issue and have created a fix. I've updated (and simplified) the code to save the nb and convert the nb to a script. Now you only need to use:
#|eval: false
#|hide
from tsai.export import get_nb_name; nb_name = get_nb_name(locals())
from tsai.imports import create_scripts; create_scripts(nb_name)
I've tested the new approach both in Jupyter notebook and in VSCode and it worked well. It'd be good if you could test it as well.
I have tested it both in VSCode and Jupyter Notebook. It works fine for me. Thanks!
Hi, I'm trying to contribute to this project. But there is an error in the last cell:
The log is:
It seems the ‘nb_name‘ is None