Hi , big guys ,how could I set up the extension named Jupyterlab-latex so that I can automatically match the possible options when typing instead of having to manually press the tab key?
Thanks so much.
This is possible, but not particularly easy, or particulalry powerful (not many commands known) with jupyterlab-lsp, pip
, and a bunch of manual downloads.
Here’s a binder which demonstrates a recommendable, mostly-cross-platform path, without knowing more about the OS/method you are installing with.
To do this locally (aside from the full xelatex
environment)
- get Mambaforge (a flavor of miniforge)
- start (and check in) a new
environment.yml
like the one in the gist - update the environment
mamba env update environment.yml --prefix .venv
conda activate ./.venv
jupyter lab
- optionally update the language server settings to look like:
Some reasoning:
-
conda/mamba
vspip
-
pip
can’t install a LaTeX environment or the language server
-
-
miniforge
vsminiconda/anaconda
- the terms of service are rather odious, and could change at any time
- using
conda-forge
(and notdefaults
fromanaconda.com
) will increase stability and reproducibility
-
mamba
vsconda
- once you start putting other “actual work” stuff in this env, it will get quite large,
conda
can take minutes to solve
- once you start putting other “actual work” stuff in this env, it will get quite large,
1 Like