-
Notifications
You must be signed in to change notification settings - Fork 310
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
Jupyter Server CLI can't accept server extensions as key value items. #606
Comments
I hit the same issue, any solution for it? |
@kevin-bates I am using the master branch, version is |
Hmm. Are you still trying to use the JSON format to describe the single parameter rather than break each key/value pair into separate options? For example, this will not work using jupyter server --ServerApp.jpserver_extensions='{"serverextensionX": True, "jupyterlab": True}' But this should be fine (and confirmed in my env using
|
@kevin-bates Here's the command I use
And this is the output I see:
But I can not open |
I knew adding the version information in the startup info messages was a good idea! 😉
Looks like you have an issue with python envs. You should see this when running
|
Thanks @kevin-bates , this is indeed my env issue. After I correct this issue, I hit another error when I run command:
I can ensure that Is there anything wrong with my environment? Thanks |
Looks like the examples are currently broken, see #858. I'll dive into this later today and try to get things working. Watch that issue for updates. |
Description
It seems like the jupyter server cli isn't able to accept server extensions listed as key value items because of the incorrect 'enabled' type. Traitlet interprets any true value as a string and not a boolean.
Reproduce
I've been using the dict traits to define the server extensions in the jupyter server cli.
-ServerApp.jpserver_extensions='{"serverextensionX": True, "jupyterlab": True}'
However, I get the following deprecation warning for that configuration
When I update it to the following
I get the following error:
I tried passing in
1
,true
, and not setting any value, but they all get converted into strings and trigger the same error message.Expected behavior
To accept string values "True" or "true" and enable server extensions.
Context
The text was updated successfully, but these errors were encountered: