jupyterlab / jupyterlab-latex

JupyterLab extension for live editing of LaTeX documents
BSD 3-Clause "New" or "Revised" License
622 stars 69 forks source link

Server extension error, can't use extension at all #178

Closed aquirdTurtle closed 3 years ago

aquirdTurtle commented 3 years ago

Description

I have the notebook and server extensions installed and enabled, but I still get

Server Extension Error You probably do not have jupyterlab_latex installed or enabled. Please, run "pip install -U jupyterlab_latex." If that does not work, try "jupyter serverextension enable --sys-prefix jupyterlab_latex".

The console shows

404 GET /latex/build/Thesis/mythesis.tex?synctex=1&1628805854146 (127.0.0.1) 2.99ms referer=http://localhost:8888/lab/tree/Thesis/mythesis.tex

I've tried reinstalling the extension, reinstalling jupyter, reinstalling latex (I'm using MikTex and xelatex is available on my command line, so that shouldn't be an issue, and I have no issues running latex on my files via command line), and even completely reinstalling anaconda, all to no avail. These error messages could really use some more information. Especially with the funny server extension situation I have no idea how this is working under the hood so it's rather hard to debug. It seems like there should be a way for this to run effectively just running xelatex on the command line in the background, this would be much easier to debug I think. I'm using Windows 10 and Firefox.

versions:

@jupyterlab/latex  3.0.0
jupyter-client         6.1.12
jupyter-core           4.7.1
jupyter-server         1.4.1
jupyterlab             3.1.4
jupyterlab-latex       3.0.0
jupyterlab-pygments    0.1.2
jupyterlab-server      2.6.2
welcome[bot] commented 3 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

aquirdTurtle commented 3 years ago

It looks like the issue was indeed needing jupyter server extension enable --sys-prefix jupyterlab_latex instead of jupyter serverextension enable --sys-prefix jupyterlab_latex As mentioned a while ago here. I don't understand the comment "If you are running Notebook 5.2 or earlier, enable the server extension by running..." as I'm running version 6.4.0. So this seems not quite correct.

Firestar-Reimu commented 1 year ago

This issue still exist after I run jupyter serverextension enable --sys-prefix jupyterlab_latex, and pip install -U jupyterlab_latex

[firestar @ ArchLinux ~] (15:32:26)
$ jupyter server extension list
Config dir: /home/firestar/.jupyter

Config dir: /usr/etc/jupyter
    jupyterlab_latex enabled
    - Validating jupyterlab_latex...
      jupyterlab_latex 3.1.0 OK

Config dir: /usr/local/etc/jupyter

[firestar @ ArchLinux ~] (15:32:50)
$ jupyter labextension list
JupyterLab v3.6.3
/home/firestar/.local/share/jupyter/labextensions
        jupyter-matplotlib v0.11.3 enabled OK
        jupyterlab-execute-time v2.3.1 enabled OK (python, jupyterlab_execute_time)
        @ryantam626/jupyterlab_code_formatter v1.6.1 enabled OK (python, jupyterlab-code-formatter)
        @jupyter-widgets/jupyterlab-manager v5.0.7 enabled OK (python, jupyterlab_widgets)
        @jupyterlab/latex v3.1.0 enabled OK (python, jupyterlab-latex)

/usr/share/jupyter/labextensions
        jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
        @lckr/jupyterlab_variableinspector v3.0.9 enabled OK