Comments (4)
from jupyterlab-desktop.
Do you know the best way to change the token the jupyterlab frontend uses? I have the main process starting the jupyter server and sending the token to the frontend via the message layer, I just can't get the frontend to actually use the token.
I tried modifying the DOM so the jupyter-config-data element contains the appropriate data; however, it appears the jupyterlab code picks up the configuration before I create an instance of JupyterLab, so it just starts up using whatever was in the jupyter-config-data when it was served. Is there a property in the JupyterLab instance I can modify to set the token?
from jupyterlab-desktop.
from jupyterlab-desktop.
I'm already parsing the output of notebook list --json
in the main process to get the token, and it's already being sent to the render process using the ipc library. What I can't figure out is getting the render process to connect to the jupyter server with the token that is sent. Previously, the render process got the token using the jupyter-config-data element in index.html, which has a token
field that is manually set by the user. I tried using JavaScript to modify the DOM before it starts Jupyterlab so the token is set to the right value, but that doesn't work.
My guess is that the jupyter-config-data is loaded into a global scope somewhere when the page renders, I just can't figure out the best way to modify that.
from jupyterlab-desktop.
Related Issues (20)
- Usage of %pip leads to an error in 4.1.0-1 and newer bundled environment HOT 3
- Can jupyterlab-desktop be made into a portable version? HOT 3
- electron-28 fails to start jupyterlab-desktop HOT 8
- Duplication in "manage python environments" HOT 11
- Snap deployment issues HOT 3
- Document TOC in Zen mode? HOT 3
- Julia Interact Widgets not working HOT 9
- v4.1.x Windows Installer copyright 2021 HOT 3
- Trying to resolve 'conda not found' error with a miniforge environment HOT 8
- Ctrl-Z shortcut does not work for jupyterlab desktop v3.6.3-2 and after HOT 3
- [latest.json](https://github.com/jupyterlab/jupyterlab_pygments/files/14751790/latest.json) HOT 1
- Bug: default install directory result in import error HOT 4
- Session cannot be started in a folder with non-ascii characters HOT 2
- UI mode not working? HOT 1
- Jupyter-lab 4.15-1 refuse to write the character "}" HOT 2
- Please provide a Universal binary to support both Intel and ARM Macs in a single app bundle. HOT 1
- Please provide a .pkg installer
- JupyterLab Desktop Does Not Save Custom Theme HOT 4
- Possible to add in a 'warn before closing' message when the user tries to quit the program?
- Unexpected token ' HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyterlab-desktop.