Git Product home page Git Product logo

Comments (10)

mpacer avatar mpacer commented on May 28, 2024

Hi @epifanio what version of jupyterlab-latex, jupyterhub, jupyter notebook & jupyter lab are you using?

from jupyterlab-latex.

epifanio avatar epifanio commented on May 28, 2024

Hi @mpacer , I'm running jupyterlab and jupyterlab-latex from github master. hub and notebook are pip installed.

  • Edit: I just updated jupyterhub to master, I'll do the same with the notebook and check again the jupyterlab-latex logs.

  • Edit2: jupyterlab-latex, jupyterhub, jupyter notebook & jupyter lab are now updated to their git master branch versions. (Note: I've also installed jupyterlab hub extension, which was not installed before).

The jupyterlab-latex logs are the same (can't find .tex file)

from jupyterlab-latex.

mpacer avatar mpacer commented on May 28, 2024

could you pip install jupyter_conf_search and then run

jupyter_conf_search base_url

?

from jupyterlab-latex.

epifanio avatar epifanio commented on May 28, 2024

it gives me:

 jupyter_conf_search base_url
/root/.jupyter/jupyter_notebook_config.py
78: ## DEPRECATED use base_url
84: #c.NotebookApp.base_url = '/' 

I run the hub as root with a custom config which is in:

/etc/jupyterhub/jupyterhub_config.py
 cat /etc/jupyterhub/jupyterhub_config.py  | grep base
#  Dict of token:username to be loaded into the database.
## The base URL of the entire application
#c.JupyterHub.base_url = '/'
#  The Hub should be able to resume from database state.
#  The Hub should be able to resume from database state.
## Include any kwargs to pass to the database connection. See
## url for the database. e.g. `sqlite:///jupyterhub.sqlite`
## log all database transactions. This has A LOT of output
## Purge and reset the database.
## Dict of token:servicename to be loaded into the database.
## Upgrade the database automatically on start.
#  Only safe if database is regularly backed up. Only SQLite databases will be
#  auth_state will be encrypted and stored in the Hub's database. This can
#  (or more, separated by ;) 32B encryption keys. These can be either base64 or

from jupyterlab-latex.

mpacer avatar mpacer commented on May 28, 2024

Where do you define the root directory for the users of your jupyterhub cluster?

from jupyterlab-latex.

epifanio avatar epifanio commented on May 28, 2024

In my config I have:

c.Spawner.notebook_dir = '~/notebooks'

from jupyterlab-latex.

mpacer avatar mpacer commented on May 28, 2024

Ah… so that's the problem. I think that notebook_dir is being used there and we're looking for base_url on the notebook application.

@minrk which of these should actually be used for our purposes? @ian-r-rose said he had gotten the approach to use webapp.settings['base_url'] from jupyterlab (I think? Ian can you verify that?) so I'm not sure how this differs from that case.

from jupyterlab-latex.

minrk avatar minrk commented on May 28, 2024

base_url is only used as a prefix to all URLs in the webapp. It shouldn't be involved in locating files, however it is necessary when receiving a URL to not consider the base url part of the path to the file.

Notebooks are served from NotebookApp.notebook_dir, not necessarily the CWD, which is my guess as to the source of your issue.

You can test with:

jupyter notebook /path/to/some/dir

and see if it is locating files correctly

from jupyterlab-latex.

mpacer avatar mpacer commented on May 28, 2024

@minrk is there a way to get access to the notebook traitlets without needing to inherit the entire NotebookApp?

from jupyterlab-latex.

ian-r-rose avatar ian-r-rose commented on May 28, 2024

Fixed by #55, thanks for the report @epifanio

from jupyterlab-latex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.