-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Parameterized kernel specs #16487
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
base: main
Are you sure you want to change the base?
Parameterized kernel specs #16487
Conversation
|
Thanks for making a pull request to jupyterlab! |
for more information, see https://pre-commit.ci
…asiaSliusar/jupyterlab into parameterized-kernel-specs
| if (model) { | ||
| await sessionContext.changeKernel(model); | ||
| if (hasCheckbox && result.isChecked !== null) { | ||
| if (model && sessionContext.kernelPreference?.customKernelSpecs) { |
Check warning
Code scanning / CodeQL
Useless conditional
| sessionContext.kernelPreference.customKernelSpecs = undefined; | ||
| } | ||
|
|
||
| if (model && dialogResult.custom_kernel_specs) { |
Check warning
Code scanning / CodeQL
Useless conditional
| }; | ||
| } | ||
|
|
||
| if (model === null && !sessionContext.hasNoKernel) { |
Check warning
Code scanning / CodeQL
Comparison between inconvertible types
| if (model === null && !sessionContext.hasNoKernel) { | ||
| return sessionContext.shutdown(); | ||
| } | ||
| if (model) { |
Check warning
Code scanning / CodeQL
Useless conditional
| if (model) { | ||
| await sessionContext.changeKernel(model); | ||
| if (hasCheckbox && result.isChecked !== null) { | ||
| if (model && sessionContext.kernelPreference?.customKernelSpecs) { |
Check warning
Code scanning / CodeQL
Useless conditional
| sessionContext.kernelPreference.customKernelSpecs = undefined; | ||
| } | ||
|
|
||
| if (model && dialogResult.custom_kernel_specs) { |
Check warning
Code scanning / CodeQL
Useless conditional
| }; | ||
| } | ||
|
|
||
| if (model === null && !sessionContext.hasNoKernel) { |
Check warning
Code scanning / CodeQL
Comparison between inconvertible types
| if (model === null && !sessionContext.hasNoKernel) { | ||
| return sessionContext.shutdown(); | ||
| } | ||
| if (model) { |
Check warning
Code scanning / CodeQL
Useless conditional
References
This work is in progress as JEP jupyter/enhancement-proposals#87.
This PR should be reviewed when the JEP has been accepted
Code changes
There are next changes in:
User-facing changes
"{raw}"in the demo video) inside kernel.json file then these variables will be cleaned and a kernel will be run without them.Demo video: https://drive.google.com/file/d/16kPyPoowsewuYkj1-3t6q6d-5G23fsQH/view?usp=sharing
How to run
Parameterized kernel specs jupyter-server/jupyter_server#1431
Parameterized kernel specs jupyter/jupyter_client#1028