Dear
an end-user is trying to use the custom.js file in his home directory:
~/.jupyter/custom/custom.js
it seems this script is not working when using Jupyterhub in combination with JupyterLab.
We also tried to restart the notebook in jupyterhub, even the jupyterhub server itself.
I’m working with a simple example:
alert("hello world from custom.js")
https://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/JavaScript%20Notebook%20Extensions.html#Exercise-:
But that is not even working. Has someone suggestions what we could do ?
manics
April 12, 2022, 4:55pm
2
Hi! Is this working if you run JupyterLab directly, without JupyterHub?
If it does work can you tell us how you deployed JupyterHub, including versions, your base system, and your configuration with secrets redacted?
no, it is also not working in JupyterLab directly.
Where I’m supposed to see this “hello world from custom.js” message?
manics
April 20, 2022, 1:56pm
4
If it’s not working in standalone JupyterLab that helps rule out JupyterHub being a problem. Hopefully someone with more knowledge of JupyterLab will be along soon to help!
This might be the same issue as here ? :
Hi !
I am running jupyterlab in a docker container, here is the docker-compose file :
version: '3'
services:
datascience-notebook:
image: jupyter/datascience-notebook:python-3.10
container_name: jupyter_notebook
volumes:
- /home/user/docker_volumes/jupyterlab/work:/home/jovyan/work
- /home/user/docker_volumes/jupyterlab/.jupyter/custom:/home/jovyan/.jupyter/custom
ports:
- 8888:8888
command: "start-notebook.sh \
--ServerApp.token…
Hi, we are having the exact same problem. The content of the custom.js script is not executed at all. Has anybody found a solution to this yet?
The newer JupyterLab (>4.1.0) should support custom.css (See PR ), but I dont think it supports custom JavaScript.