-
Notifications
You must be signed in to change notification settings - Fork 506
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
JupyterLab 4 support #1343
JupyterLab 4 support #1343
Conversation
for more information, see https://pre-commit.ci
Thank you !! |
Yeah! |
@@ -140,3 +140,19 @@ class VoilaConfiguration(traitlets.config.Configurable): | |||
help="""Size of pre-heated kernel pool for each notebook. Zero or negative number means disabled. | |||
""", | |||
) | |||
|
|||
extension_whitelist = List( |
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.
Maybe 0.5.0
could be a good time to switch to allowlist
and denylist
?
Since it was also suggested in #725.
"@voila-dashboards/jupyterlab-preview", | ||
"@jupyter/collaboration-extension", | ||
] | ||
must_have_extensions = ["@jupyter-widgets/jupyterlab-manager"] |
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.
Maybe required_extensions
would also work as an alternative to must_have_extensions
?
References
#1304
Code changes
User-facing changes
VoilaConfiguration
:VoilaConfiguration.extension_whitelist
: The list of enabled JupyterLab extensions, ifNone
, all extensions are loaded.This setting has higher priority than the
extension_blacklist
VoilaConfiguration.extension_blacklist
: The list of disabled JupyterLab extensions, ifNone
, all extensions are loadedBackwards-incompatible changes
Theme and template config are renamed:
voila-theme
->theme
voila-template
->template
Theme argument now is the theme name displayed in JupyterLab and not the name of the theme python package.