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
Update jupyterhub_config.py.j2 for JupyterHub 3.1.1 & /run/jupyterhub-proxy.pid [+ refine doc. Is error "IOPub data rate exceeded" common &/or solvable?] #3476
Conversation
Tested successfully with http://box/jupyterhub (which shows JupyterLab 3.6.1) on a Ubuntu Server 22.04.1 VM:
|
Summary of this PR...from the top of the new roles/jupyterhub/templates/jupyterhub_config.py.j2 :
|
@cwivagg can you give this PR a quick review if you have a moment? |
Also spot-tested on the latest daily build of Ubuntu Server 23.04 ✔️ |
OLD file for the record:
NEW file for the record: [REVISED 2023-08-09]
|
@deldesir asks if the equivalent of
As recommended by: https://stackoverflow.com/questions/43288550/iopub-data-rate-exceeded-in-jupyter-notebook-when-viewing-image (He'll look into it overnight.) |
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.
This is correct for me. The "IOPub data rate exceeded" error often occurs when a function or command produces repetitive output more than a thousand times. I usually get around it by passing --ServerApp.iopub_data_rate_limit 10000000000 at the command line (the higher number does the trick).
Yes. In my case (and maybe others) it would be good to set it in the configuration once and for all. |
@deldesir is the exact string |
@deldesir the following JupyterHub config file setting...
...is suggested by: (Can you test & confirm this is truly what you need?) |
@georgejhunt it looks like you set Do you know if this is meant to match (Or is |
I tested it. It has no effect. |
QUESTION: Are either-or-both above dir settings advisable? |
As explained in the systemdspawner#user_workingdir doc, the above IIAB setting is completely ignored because of PS |
…dir = '/opt/iiab/notebooks/{USERNAME}'"
You should probably mention that at jupyterhub/jupyterhub#1152 as ~18 people there (suggest) it is/was working for them. (And if possible, be specific as to how you tested it.) |
@deldesir please post a separate PR with a fix to your |
No problem. |
Auto-customizing
/opt/iiab/jupyterhub/etc/jupyterhub/jupyterhub_config.py
in a readable/meaningful way would be too complex, and not worth it IMO given frequent upstream changes — to this 1500+ line configuration file and its in-line guidance/explanations.So this PR is an update to IIAB's templates/jupyterhub_config.py.j2 almost 2 years later — for JupyterHub 3.1.1+ and also to specify a cleaner location for
/run/jupyterhub-proxy.pid
as discussed at:Tangentially related: