Open akcssb opened 1 week ago
You need to add more detail:
Works in my testing.
Here is my testcode: https://github.com/statisticsnorway/ssb-fagfunksjoner/blob/debug_projectroot_pyfiles/demos/project_root.py
Please provide more information about the situation where it (what?) was not working.
Be aware that Jupyterlab "remembers which folder notebooks were in before they were moved", for quite a long time. Ive had to restart the whole jupyterlab many times, when the notebooks "remember the last folder they were in". Check this with os.getcwd()
in the notebook before and after moving it to a different folder... Restarting the kernel is not enough...
ProjectRoot() from paths/project_root.py does not work when running from .py file. Only works when used from .ipynb