-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.10.2 break server in certain circumstances (when data_dir
was not yet created)
#396
Comments
CC @cmd-ntrf @ivanov what do you think about reverting #378? While adding For context, we observed this failure on CI in jupyterlab: jupyterlab/jupyterlab#15985 |
Oh bummer.
Also independent of that, should it be the responsibility of |
But the previous logic does call |
Why is this a problem? FYI my concern be was specifically with the new solution not respecting |
Maybe. I do not know enough about implications, and I suspect it might break something downstairs. One would need to dig though git and issues history to see why it is this way. |
You're right, I've struck that part out.
Actually, after refreshing my memory by poking through jupyter_core and traitlets, specifically due to traitlets' Application being a SingletonConfigurable, I think I'm wrong there, too. If the subclass is initialized, the
Just looking at the previous |
Thanks for identifying the issue and putting out the revert @krassowski ! |
#378 aimed to simplify
NotebookNotary.data_dir
. Previously the defaultNotebookNotary.data_dir
ofJupyterApp
would be used as a default, simplifying a bit:The default for
JupyterApp.data_dir
it is defined here as:#378 changed the
NotebookNotary.data_dir
to:Which notably does not include the call to
ensure_dir_exists
.Further, if
JupyterApp.data_dir
is customized, this change will no longer be reflected inNotebookNotary.data_dir
which I think is a breaking change.The text was updated successfully, but these errors were encountered: