jupyterlab error

41 views
Skip to first unread message

Henri Girard

unread,
Jul 17, 2019, 7:35:45 AM7/17/19
to Project Jupyter

Hi,


I can't no more use jupyterlab in sage -n=jupyterlab, I got this error message ?


Cannot find template: "error.html"

In "/home/pi/sage/local/share/jupyter/lab/static"


I am on ubuntu 19.10, it used to work and suddenly stop... I installed it this way


sage -sh

then pip install jupyterlab --user --upgrade


exit


Any help ?


Regards

Henri

Afshin T. Darian

unread,
Jul 17, 2019, 9:35:28 AM7/17/19
to jup...@googlegroups.com
Hello Henri,

Could you please try running the command:

jupyter lab build

to see if it resolves the issue? It looks like the static built resources that JupyterLab needs don't exist where it expects to find them.

If that does *not* fix the problem, can you confirm whether running just the plain launch command:

jupyter lab

successfully launches JupyterLab?

Cheers!

-Darian

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/6ad16eea-3338-4d5b-bff5-12aee1682589%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Henri Girard

unread,
Jul 18, 2019, 4:29:21 AM7/18/19
to Project Jupyter
Hi Darian,
Thank first :)
jupyter lab build do the job

jupyter lab runs but inside I haven't choice for sage ?

I compiled sage-8.8 then I linked it to /usr/bin/sage so I can use it as system wide.
After I installed jupyterlab with pip in sage (as I always do for a long times)

sage -sh
pip install jupyterlab --user --upgrade


Le mercredi 17 juillet 2019 13:35:45 UTC+2, Henri Girard a écrit :

Hi,


I can't no more use jupyterlab in sage -n=jupyterlab, I got this error message ?


in a console jupyter lab build (if I don't sudo -H it doesn't have permissions ?

in a sage -sh console it doesn't here is the error message ?
(sage-sh) pi@pc:~$ sudo -H jupyter lab build
Traceback (most recent call last):
  File "/usr/local/bin/jupyter-lab", line 7, in <module>
    from jupyterlab.labapp import main
ModuleNotFoundError: No module named 'jupyterlab'
 
I guess it's a problem of permissions ? But I don't know how to set it ?

Cheers
Henri

Henri Girard

unread,
Jul 18, 2019, 7:13:39 AM7/18/19
to Project Jupyter
In fact I found the problem, I had to make a sage kernel in jupyter kernels

I thaught it was automatically done by sage / jupyter

"display_name": "sage",
 "argv": ["/home/user/sage/sage", "--python", "-m", "sage.repl.ipython_kernel", "--matplotlib=inline", "-f", "{connection_file}"]
}

Le mercredi 17 juillet 2019 13:35:45 UTC+2, Henri Girard a écrit :
Reply all
Reply to author
Forward
0 new messages