Giter Club home page Giter Club logo

Comments (18)

ian-r-rose avatar ian-r-rose commented on June 7, 2024

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.

RitwikGupta avatar RitwikGupta commented on June 7, 2024

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.

ian-r-rose avatar ian-r-rose commented on June 7, 2024

Ah, well that certainly seems like it is hanging :)
I'll try rebooting into windows and see if I can reproduce.

from jupyterlab-latex.

RitwikGupta avatar RitwikGupta commented on June 7, 2024

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.

mpacer avatar mpacer commented on June 7, 2024

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.

RitwikGupta avatar RitwikGupta commented on June 7, 2024

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.

ian-r-rose avatar ian-r-rose commented on June 7, 2024

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.

RitwikGupta avatar RitwikGupta commented on June 7, 2024

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.

blink1073 avatar blink1073 commented on June 7, 2024

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.

RitwikGupta avatar RitwikGupta commented on June 7, 2024

@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
image

from jupyterlab-latex.

blink1073 avatar blink1073 commented on June 7, 2024

Hi @RitwikGupta, does it work with jupyter labextension install @jupyterlab/latex --dev (which avoids the production build).

from jupyterlab-latex.

RitwikGupta avatar RitwikGupta commented on June 7, 2024

@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.

cemulate avatar cemulate commented on June 7, 2024

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.

cemulate avatar cemulate commented on June 7, 2024

There's a thread about this at jupyterlab/jupyterlab#4276

from jupyterlab-latex.

jnvandermeer avatar jnvandermeer commented on June 7, 2024

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.

ian-r-rose avatar ian-r-rose commented on June 7, 2024

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.

openthings avatar openthings commented on June 7, 2024

I am using Nodejs 10,will hang on webpack,downgrade to 8.10.0, and install and run successfully.

from jupyterlab-latex.

bollwyvl avatar bollwyvl commented on June 7, 2024

As of #171, the "prebuilt" extension mechanism is recommended, as it does not require nodejs.

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.