Ask quick dev questions about JupyterHub, the multi-user server for Jupyter notebooks. Use discourse.jupyter.org for user questions, support, and discussion.
manics on main
avoid database error on repeate… Merge pull request #4019 from m… (compare)
hi y'all! I'm thinking about using JupyterHub for a project.
My company makes scientific python packages and dash apps, and I wondered if creating custom, preloaded JupyterHubs would be a good thing to do for our client companies. Ideally we could make some highly customized front end that could launch the dash apps or other custom gui webapps, but also have a link to the JupyterHub with all of our software packages on it. Does this sound like a good usecase?
Hello i just have two questions with regards to a jovyan user's account suddenly requiring a refresh ( no cmds are run, the browser displays a pop up which requests a restart of the server)
Looking at the logs for our hub, I found that it could be because of the MIME request header parsing.
I was hoping to ask if there are any ways to improve the stability of a user pod so that it won't randomly restart a users server.
With respect to the below issue, is there a way to inspect or guarantee a */*
type?
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/tornado/web.py", line 1704, in _execute
result = await result
File "/usr/local/lib/python3.8/dist-packages/jupyterhub/handlers/base.py", line 1496, in get
get_accepted_mimetype(
File "/usr/local/lib/python3.8/dist-packages/jupyterhub/utils.py", line 636, in get_accepted_mimetype
for (mime, params, q) in _parse_accept_header(accept_header):
File "/usr/local/lib/python3.8/dist-packages/jupyterhub/utils.py", line 591, in _parse_accept_header
typ, subtyp = media_type.split('/')
ValueError: not enough values to unpack (expected 2, got 1)
Uncaught exception GET /hub/user/<user_name>/files/<folder_name>/<file_name>.ipynb?_xsrf=2%7C998969d3%7Cdc244f802e575ffd753fcdbf6efd17de%7C1658510380 (::ffff:192.168.110.249)
Proxy logs
18:33:13.220 [ConfigProxy] error: 503 GET /user/<user>/api/terminals connect ECONNREFUSED IP:8888
18:33:17.372 [ConfigProxy] error: 503 GET /user/<user>/api/kernels/413753d7-67bb-4a49-ae10-84c1f80f3c00/channels connect EHOSTUNREACH IP:8888
18:33:17.372 [ConfigProxy] error: 503 GET /user/<user>/api/contents/file_name connect EHOSTUNREACH IP:8888
18:33:17.373 [ConfigProxy] error: 503 GET /user/<user>/api/kernels connect EHOSTUNREACH IP:8888
18:33:17.373 [ConfigProxy] error: 503 GET /user/<user>/api/sessions connect EHOSTUNREACH IP:8888
18:33:20.540 [ConfigProxy] error: 503 GET /user/<user>/api/kernels/413753d7-67bb-4a49-ae10-84c1f80f3c00 connect EHOSTUNREACH IP:8888
18:33:22.186 [ConfigProxy] info: Removing route /user/<user>
18:33:22.186 [ConfigProxy] info: 204 DELETE /api/routes/user/<user>
18:33:39.731 [ConfigProxy] info: 200 GET /api/routes
18:34:39.731 [ConfigProxy] info: 200 GET /api/routes
18:34:41.856 [ConfigProxy] info: Adding route /user/<user> -> http://NEW_IP:8888
18:34:41.856 [ConfigProxy] info: Route added /user/<user> -> http://NEW_IP:8888
18:34:41.857 [ConfigProxy] info: 201 POST /api/routes/user/<user>
Could this be a reassigning of IP that could be the issue?
connection refused
Hey there! I'm having some issues on a Littlest Jupyterhub environment on AWS. Users are authenticating to Jupyterhub through Azure AD. We've got a proxy in the environment and I've been trying back and forth to get the TLJH server to use the proxy when the users log in (cuz otherwise the authentication won't be completed, it needs to go through the corporate proxy), but I can't get it to work (I've been tracing the traffic through tcpdump and I can see the server sends the requests directly without going through the proxy, and then they time out). I've been looking at documentation and already opened issues (such as jupyterhub/oauthenticator#217) but I haven't been able to make it work on a TLJH installation.
Do you guys have any idea what else could I try to get it to work? Thanks! :)
/user/{username}/{suffix}
be mapped to dynamic target? i.e http://service.com:8888/{username}/someStringHere/{suffix} ?
I'm trying to make "rooms" that users get routed into. The "rooms" are pre-launched instances of JupyterLab. I am able to programmatically spawn the instances and I am able to programmatically configure the CHP in order to route requests the newly spawned instances; however the instances that I spawn are unable to communicate with the Hub presumably because they have not completed the OAuth with the Hub.
Anyhow, I am wondering if there is an approach to spawning JupyterLab instances that aren't necessarily owned by a single user. In other words, I would like to spawn JupyterLab instances that have URLs like this: "https://example.org/user/the-name-of-the-room/lab?"
access:servers!user=name
scope. So if you create 'fake' users, you can grant a group of real users access to that fake user's server.
Hello! I'm doing some work on an existing JupyterHub for Kubernettes cluster and I'd like to allow for users to leave work running on their notebook server overnight.
So far I've considered:
Are there any other good options for achieving this? Is it possible at all for JupyterHub admins/users to disable culling on individual servers (but have culling turned on by default).
Thanks in advance for any thoughts or advice!
Hello again, I've been trying to allow users to create their own conda environments for notebooks for our Juptyerhub for Kubernetes, everything seems to be set up according to that guide but I've been trying it out and I can't seem to use my own conda environment in a notebook:
I use conda to create an environment with the ipykernel and an arbitrary python package (suds
) that isn't in our base environment: conda create -n myenv ipykernel suds
This environment shows up in my configured user directory ~/my-conda-envs/myenv
and the kernel appears in the list of available kernels (as 'Python [conda env:myenv]').
However I can't seem to use this environment/kernel; the notebook doesn't seem to be able to connect (when I run a cell the status goes from 'Connecting' to 'Disconnected', sometimes to 'No Kernel')
Any advice on debugging this? Happy to provide any info
Hey guys, I have a small question. Is it possible to have multiple users connect to the same jupyter notebook pod?
Context: I am trying to provide jupyter notebook access to large volume of users.
Right now, every user spawns a new jupyter notebook pod in the kubernetes cluster and this is not very efficient. I am looking for a way to connect many users to one single notebook pod in kubernetes.