https://github.com/jupyterlab/jupyterlab-latex Skip to content Sign up * Why GitHub? Features - + Mobile - + Actions - + Codespaces - + Packages - + Security - + Code review - + Project management - + Integrations - + GitHub Sponsors - + Customer stories- * Team * Enterprise * Explore + Explore GitHub - Learn and contribute + Topics - + Collections - + Trending - + Learning Lab - + Open source guides - Connect with others + The ReadME Project - + Events - + Community forum - + GitHub Education - + GitHub Stars program - * Marketplace * Pricing Plans - + Compare plans - + Contact Sales - + Education - [ ] [search-key] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} jupyterlab / jupyterlab-latex * Notifications * Star 378 * Fork 54 JupyterLab extension for live editing of LaTeX documents BSD-3-Clause License 378 stars 54 forks Star Notifications * Code * Issues 44 * Pull requests 3 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 14 branches 17 tags Code Clone HTTPS GitHub CLI [https://github.com/j] Use Git or checkout with SVN using the web URL. [gh repo clone jupyte] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching Xcode If nothing happens, download Xcode and try again. Go back Launching Visual Studio If nothing happens, download the GitHub extension for Visual Studio and try again. Go back Latest commit @blink1073 blink1073 Merge pull request #133 from jan-janssen/ clean_up_remove_dir ... e85d059 Feb 2, 2021 Merge pull request #133 from jan-janssen/clean_up_remove_dir Remove directories e85d059 Git stats * 322 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time binder Bump notebook from 5.7.8 to 6.1.5 in /binder Nov 18, 2020 docs Removed duplicate section on shell_escape from advanced.md. Nov 14, 2019 images Make the sample .tex a bit more interesting. Feb 2, 2018 jupyter-config/jupyter_notebook_config.d More work on conf.d Jan 12, 2018 jupyterlab_latex Remove directories Apr 1, 2020 schema Make whether to use SyncTeX configurable by the client. Mar 6, 2018 src Merge pull request #148 from joequant/dev/add-latex-file-menu Feb 2, 2021 style Merge pull request #148 from joequant/dev/add-latex-file-menu Feb 2, 2021 .gitignore add gitignore Oct 23, 2017 .prettierignore Make codebase prettier. Jul 11, 2018 .prettierrc Make codebase prettier. Jul 11, 2018 LICENSE add license Oct 23, 2017 MANIFEST.in add MANIFEST.in and remove unused print import Jan 12, 2018 README.md Copied section on shell_escape from advanced.md to README.md Nov 14, 2019 package.json add latex file menu Oct 24, 2020 sample.tex typo fix Oct 25, 2020 setup.cfg Fix license name. Jul 25, 2018 setup.py get version from separate file to avoid needing unnecessary dependencies Jan 23, 2018 setupbase.py python version checking with clear error message Jan 12, 2018 tsconfig.json Use esnext module output for tsconfig. Feb 12, 2019 tslint.json Updates for JupyterLab 1.0-prelease. Feb 7, 2019 yarn.lock Merge pull request #144 from jupyterlab/dependabot/npm_and_yarn/ node-... Feb 2, 2021 View code JupyterLab LaTeX Usage Requirements Installation Customization Security and customizing shell escapes Changes README.md JupyterLab LaTeX Binder An extension for JupyterLab which allows for live-editing of LaTeX documents. Usage To use, right-click on an open .tex document within JupyterLab, and select Show LaTeX Preview: preview This will compile the .tex file and open the rendered PDF document. Subsequent saves of the file will automatically update the PDF. If the PDF fails to compile (possibly due to a syntax error), an error panel will open detailing the LaTeX error. For more advanced usage documentation, see here. Requirements * JupyterLab 1.0 * Python >= 3.6 * An application that can compile .tex files to PDF (e.g., pdflatex, xelatex; use pdflatex.exe on Windows with MiKTeX). This application must be available as a command in the same environment as the notebook server. * An application that can process .bib files for producing bibliographies. As with the LaTeX command, this must be available in the same environment as the notebook server. Installation This extension includes both a notebook server extension (which interfaces with the LaTeX compiler) and a lab extension (which provides the UI for the LaTeX preview). In order to use it, you must enable both of them. To install the server extension, run the following in your terminal: pip install jupyterlab_latex If you are running Notebook 5.2 or earlier, enable the server extension by running jupyter serverextension enable --sys-prefix jupyterlab_latex To install the lab extension, run jupyter labextension install @jupyterlab/latex Customization The extension defaults to running xelatex on the server. This command may be customized (e.g., to use pdflatex instead) by customizing your jupyter_notebook_config.py file: c.LatexConfig.latex_command = 'pdflatex' The extension defaults to running bibtex for generating a bibliography if a .bib file is found. You can also configure the bibliography command by setting c.LatexConfig.bib_command = '' Security and customizing shell escapes LaTeX files have the ability to run arbitrary code by triggering external shell commands. This is a security risk, and so most LaTeX distributions restrict the commands that you can run in the shell. You can customize the behavior by setting the LatexConfig.shell_escape value. It can take three values: "restricted" (default) to allow only commands considered safe to be executed, "allow" to allow all commands, and "disallow" to disallow all commands. For example, to force your LaTeX distribution to run any command, use: c.LatexConfig.shell_escape = "allow" Changes For information on the changes with different versions of the jupyterlab-latex library, see our changelog About JupyterLab extension for live editing of LaTeX documents Topics pdf latex jupyterlab jupyterlab-extension Resources Readme License BSD-3-Clause License Releases 17 tags Packages 0 No packages published Used by 2 * @sparkboom @sparkboom / jupyter_lab_mods Contributors 15 * @ian-r-rose * @mpacer * @blink1073 * @dependabot * @horstle * @AlbertHilb * @b-trav * @scottweitzner * @Daniel-Mietchen * @syyee * @agoose77 + 4 contributors Languages * TypeScript 48.6% * Python 46.9% * CSS 3.1% * TeX 1.3% * Shell 0.1% * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.