jupyterlab-latex icon indicating copy to clipboard operation
jupyterlab-latex copied to clipboard

issue with document path

Open Swanson-Hysell opened this issue 5 years ago • 4 comments

This issue seems similar to #59, but is happening on a fresh pip install.

This error is thrown such that no document is compiled:

Request cannot be completed; no file at `/Users/Laurentia/build/0000_Github/Laurentia_Paleogeography/manuscript.tex`.

The correct path is: /Users/Laurentia/0000_Github/Laurentia_Paleogeography/manuscript.tex. so it seems to be looking for a build folder that doesn't exist.

Swanson-Hysell avatar Mar 04 '19 20:03 Swanson-Hysell

What are your root_dir and notebook_dir strings set to in your config python file?

I fixed mine by matching the two strings even though notebook_dir is deprecated. It looks like this extension still uses notebook_dir based on #55.

Kapral67 avatar Aug 08 '21 08:08 Kapral67

@Kapral67 How did you match the root_dir and notebook_dir? Like, how does one find those two directories?

bob-ortiz avatar Sep 09 '22 03:09 bob-ortiz

@bob-ortiz

In my jupyter_lab_config.py, I have it set like:

c.ServerApp.root_dir = '/fully/qualified/path/to/directory/'
c.ServerApp.notebook_dir = c.ServerApp.root_dir

Fair warning, I am not using the latest version of Jupyter Lab and this workaround is only accurate to versions up till whatever was latest Aug 9, 2021. I don't know if this is still necessary in the later versions.

Kapral67 avatar Sep 09 '22 03:09 Kapral67

@Kapral67 Thank you for the work-around.
I am using JupyterLab 3.6.5 with jupyterlab-latex 3.2.0 and still have to set c.ServerApp.notebook_dir if I set the root_dir explicitly:

c.ServerApp.root_dir = '/'
c.ServerApp.notebook_dir = c.ServerApp.root_dir

jhgoebbert avatar Jul 22 '23 19:07 jhgoebbert