-
Notifications
You must be signed in to change notification settings - Fork 62
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
Custom manager classes in both notebook vs. jupyter_server #41
Comments
After thinking about this further, I think this may only apply (practically speaking) to custom contents managers. |
Yes this is an issue that we encountered for Jupytext, and we found no other solution than building the contents manager class dynamically from the current contents manager: In practice it works well, but maybe that's not the best design... happy to learn of better workarounds! |
We could maybe do something similar to this? |
Looks like this is getting handled in the respective server bases (jupyter-server/jupyter_server#392, jupyter/notebook#5957 which makes sense. |
Currently, the way we check the
*_manager_class
traits (i.e.kernel_manager_class
,contents_manager_class
, etc.) prevents anyone from creating a custom class that works with both notebook and jupyter_server. That's because theType()
trait checks that the custom class inherits from a manager of one of these packages, not both.You will either see:
if you inherit the base class from
notebook
, orif you inherit from
jupyter_server
. There is no way to make a manager compatible with both servers.This is something we'll likely want nbclassic to address, since it acts as the bridge between the two packages.
The text was updated successfully, but these errors were encountered: