Comments (18)
PDF.js
, on which this extension relies, is a large and complex library, and including it makes the webpack build take significantly longer than it is otherwise (for me it takes almost a minute). How long did you wait for the build?
We would like to be able to split the pdf.js part of the build into a separate chunk, and the newly released webpack 4 is supposed to be faster, so there are some performance improvements that are possible.
from jupyterlab-latex.
I was waiting for approximately a bit over 4 hours on that command. For reference, I am building on WSL, but node, webpack, yarn, etc. do not have any compatibility problems individually with WSL that I know of.
from jupyterlab-latex.
Ah, well that certainly seems like it is hanging :)
I'll try rebooting into windows and see if I can reproduce.
from jupyterlab-latex.
Update: inside the package.json
in ~/.pyenv/versions/3.5.5/lib/python3.5/site-packages/jupyterlab/staging
, I replaced "build:prod": "webpack --config webpack.prod.config.js"
with "build:prod": "webpack"
. The install works now! So it's not an extension issue.
from jupyterlab-latex.
Do we have a way to migrate issues between repos on jupyterlab? I know @Carreau's meseeks bot could do it, but this should probably be closed here then.
from jupyterlab-latex.
I was waiting on closing the issue for exactly that reason. If there's a way to migrate it, please let me know how to do so (or if I should file a new issue). Otherwise, I can close it! 😃
from jupyterlab-latex.
I don't know how invoke meseeks to migrate the issue, but we can try to tag in @blink1073 to see if he has any ideas about what is going on here. But we should not be making you have to muck around in the package.json
just to get an extension installed :)
from jupyterlab-latex.
For what it's worth, this issue does not occur when installing jupyterlab from an egg, but it does happen when installing jupyterlab from source. Maybe a Webpack/Yarn/WSL/config issue?
from jupyterlab-latex.
Hi @RitwikGupta, can you share what commands you used to install both jupyterlab
and this extension? I can't figure out why this might be happening from that traceback.
from jupyterlab-latex.
@blink1073 Certainly. For this traceback, I installed Jupyterlab on Python 3.6.4 with pip install jupyterlab
. This installed without any problems from the egg on PyPi. To install the extension, I ran the commands on the README, namely:
pip install jupyterlab_latex
jupyter labextension install @jupyterlab/latex
These commands hang wherever the install script hits
yarn run v1.3.2
$ webpack --config webpack.prod.config.js
The webpack command hangs indefinitely and suppresses all output. To see if I could get a traceback, I manually ran node /home/ritwik/.pyenv/versions/3.6.4/lib/python3.6/site-packages/jupyterlab/staging/yarn.js run webpack --config webpack.prod.config.js
from the Jupyterlab staging folder. This is where you will get this traceback.
If you change the build:prod
target to just webpack
in package.json
, this works fine without any problems. It seems like --config webpack.prod.config.js
is the thing causing issues.
Running on Windows Subsystem for Linux
from jupyterlab-latex.
Hi @RitwikGupta, does it work with jupyter labextension install @jupyterlab/latex --dev
(which avoids the production build).
from jupyterlab-latex.
@blink1073 Yes, it does! Seems like that command invokes the build
target, which calls the command webpack
, which works. build:prod
calls webpack --config webpack.prod.config.js
, which does not work.
from jupyterlab-latex.
I'm having the same issue with jupyterlab
version 0.31.12
Even with no extensions installed, jupyter lab build
tries to run webpack --config webpack.prod.config.js
and hangs for a very long time, while jupyter lab build --dev
just runs webpack
and finishes in a few seconds.
So it seems to be the production config that's causing a problem.
Edit: Just realized this issue is in jupyterlab-latex
-- in light of my situation (no extensions installed), I might go open an issue at jupyterlab
proper.
from jupyterlab-latex.
There's a thread about this at jupyterlab/jupyterlab#4276
from jupyterlab-latex.
Installation in a fresh python=3 conda environment hangs on this issue.
(i.e. conda create - tex python=3 + source activate tex)
I tried the --dev option as outlined above, but no dice.
In addition I changed the "build" line in package.json as outlined above in the directory:
~/.conda/envs/tex/lib/python3.6/site-packages/jupyterlab/staging, but also didn't do much.
How long should it take to build the @jupyterlab/latex@file:../extensions/jupyterlab-latex-0.3.1.tgz?
Thanks!
J
from jupyterlab-latex.
Hi folks, @TiemenSch has come up with a workaround for this problem, is there any chance you could check whether it fixes things here?
from jupyterlab-latex.
I am using Nodejs 10,will hang on webpack,downgrade to 8.10.0, and install and run successfully.
from jupyterlab-latex.
As of #171, the "prebuilt" extension mechanism is recommended, as it does not require nodejs.
from jupyterlab-latex.
Related Issues (20)
- jupyterlab 3.0 HOT 10
- Compiling with Revtex4.2 HOT 2
- Table of contents failing to display HOT 1
- Failure when running "jupyter labextension install @jupyterlab/latex" HOT 2
- Pagenumbers aren't defined
- Add prebuilt extension HOT 1
- Make default binder a "live" preview HOT 1
- Download Icon not visible on dark theme
- Server extension error, can't use extension at all HOT 3
- Continue releasing npm packages (3.1.0+)
- Scroll editor to page is not working but scroll pdf to cursor works fine. HOT 2
- GET 500 while use synctex to scroll editor to page HOT 1
- Server Extension Error when generating LaTeX preview in Docker (jupyterlab/scipy-notebook) HOT 1
- Latex macros in Jupyter Lab HOT 1
- Jupyterlab-latex update for Jupyterlab 4 and Lumino 2 HOT 1
- Support lualatex? HOT 1
- jupyterlab 4.x issues with latex and creating new files in the root dir of jlab HOT 4
- please add 3.2.0 on PyPI HOT 9
- v4.0 does not work in collaborative session in jlab 4 HOT 2
- please add 4.0.0 on PyPI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyterlab-latex.