-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
Creating custom builds with alternative kernels #853
Comments
@psychemedia Thanks for opening this! Creating a custom environment, such as with Anaconda's |
The issue is not so much installing a new kernel into an already downloaded JupyterLab distribution, it's more a case of building a distribution with a different kernel built in (and then most likely disabling the ability to install further packages). I'm exploring solutions that can be used in secure environments (prison estates, essentially), so as you might imagine there are certain conditions attached with installing software depending on the prison category. |
Coincidentally, the previous issue (#852) asks about using JupyterLab Desktop in a completely offline/airgapped environment. On my macOS laptop, I tried using JupyterLab Desktop with no network connections at all, and it worked for me. I would expect that deploying a JupyterLab Desktop installation with additional kernels and configuration should be possible, but I'm not experienced with doing so. See a Discourse thread, with a response by @minrk, here: https://discourse.jupyter.org/t/install-common-jupyterlab-extension-and-custom-kernel-in-jupyterhub/24442/2 |
Presumably we can install additional kernels via the server setup file? https://github.com/jupyterlab/jupyterlab-desktop/blob/master/env_installer/jlab_server.yaml For example, for R: https://github.com/jupyter-xeus/xeus-r/ or https://anaconda.org/r/r-irkernel (do they include https://anaconda.org/r/r as a dependency?) [UPDATE: simply adding What does https://github.com/jupyter-xeus/xeus-r/ Where we custom jupyter extensions be installed into the application? Into env_installer as pip dependencies? How could we then remove the |
@psychemedia You can customize the bundled Python environment by updating the jlab_server.yaml as you guessed. You can add / remove packages to that file. It is also possible to make changes to the environment configuration by placing files into You can refer to developer documentation for creating an installer locally. |
@mbektas thanks. I tried adding the xeus R kernel to the server yaml and rebuilt the app but didn't see the r kernel listed as an option in the app? |
@mbektas Testing on my Mac, (osx-arm64), the downloaded application reports as broken when I try to run it. |
that alert is shown because the created installers are not code signed & notarized. We only sign & notarize installers that will be released. If you build locally, you shouldn't run into this issue. |
Ah, of course... so this maybe is the temp workaround: And for local build: |
Is there a recipe for building custom Jupyter Desktop installers that bundle alternative kernels?
I am looking to distribute JupyterLab-Desktop to users in a limited permissions secure environment who only require access to an R kernel, and was wondering easy that might be with a custom built installer?
The text was updated successfully, but these errors were encountered: