-
Notifications
You must be signed in to change notification settings - Fork 307
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
Use extensionapp open_browser trait for serverapp config #217
Use extensionapp open_browser trait for serverapp config #217
Conversation
@Zsailer Do we have a replicable CI failure on ubuntu py3.7 (tests/test_terminal.py)? |
I'm having the same failure over in #218. |
I cannot reproduce the failure locally on an Ubuntu / python3.7. |
Yeah, that test is flaky on all platforms. I've tried increasing the timeout in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks, @echarles
This PR breaks voila (with this branch voila-dashboards/voila#592) ,
|
Tried to get the value from the Bool trait without luck. Docs and google didn't help me. Any pointer? |
I don't think it's possible. You can only |
It is definitely possible. I'm afk but can give an example later |
You need the instance of cls to access the value, not the class. We can take the default value, but I guess we want the configured value right? |
Tried different methods (from class and instance), but I can only access the default value, not the configured value. We indeed need the configured value. |
Wow—I completely missed this in the review. Sorry y'all. I think this is the wrong way to do this—but I think this will be solved by idea proposed in #207—add a step for extensions to configure the server before the server is initialized. |
My bad... Before opening that PR I had done some sanity check launching a server and it was not breaking. The command I have used is If you launch via entrypoint I have been confused a few time with the difference in behavior when you launch via jupyter server or via the entrypoint... Also not sure if the unit tests cover the entrypoints - Prolly was green because the test enable the extension via |
Agree as this is a global server config, we should have #207 to handle that. |
... so I have just opened #230 |
@Zsailer @maartenbreddels Any hint to get the boolean from the Bool trait? If we can not get this working, I will open a new PR to rollback this breaking change. |
…-browser Use extensionapp open_browser trait for serverapp config
This is a fix for #215
It uses the ExtensionApp open_browser trait for ServerApp config.