altair-viz / jupyterlab_voyager

JupyterLab extension visualize data with Voyager
BSD 3-Clause "New" or "Revised" License
298 stars 35 forks source link

error message on installation #47

Closed cchorn closed 6 years ago

cchorn commented 6 years ago

I'm getting this error after using install command

/usr/bin/npm pack jupyterlab_voyager jupyterlab_voyager-0.1.0.tgz

Errored, use --debug for full output: TypeError: the JSON object must be str, not 'bytes'

zzhangjii commented 6 years ago

Looks like it's some error with the JSON converting in this old version, we are wroking on a new version and will have a update soon. Meanwhile, if you want a try, you can use the test version published on npm: after install jupyterlab, use this command: jupyter labextension install jupyterlab_voyager_test

if installed correctly, you can then open csv, json, tsv file ,or notebook charts in Voyager through context menu. NOTE: you can't have both jupyterlab_voyager_test and jupyterlab_voyager installed at the same time, can only have one at a time

cchorn commented 6 years ago

I tried jupyter labextension install jupyterlab_voyager_test but I now get this error FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

dhirschfeld commented 6 years ago

@cchorn - https://github.com/jupyterlab/jupyterlab/issues/4325#issuecomment-382173439

ryarco commented 6 years ago

Thanks @zzhangjii, I have been waiting for this extension to work with the latest Jupyter Lab and I got it to work with: jupyter labextension install jupyterlab_voyager_test

The install kept freezing but I fixed it by running the following command first: conda install nodejs

ellisonbg commented 6 years ago

For the memory building error:

Ji, can you add this to the README?

On Mon, Jun 4, 2018 at 6:06 AM, Ryan Rusha-Conto notifications@github.com wrote:

Thanks @zzhangjii https://github.com/zzhangjii, I have been waiting for this extension to work with the latest Jupyter Lab and I got it to work with: jupyter labextension install jupyterlab_voyager_test

The install kept freezing but I fixed it by running the following command first: conda install nodejs

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/altair-viz/jupyterlab_voyager/issues/47#issuecomment-394347594, or mute the thread https://github.com/notifications/unsubscribe-auth/AABr0AKUnklfpRvr73Hy46S7Nsp9S9btks5t5TDCgaJpZM4UYEMm .

-- Brian E. Granger Associate Professor of Physics and Data Science Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger@calpoly.edu and ellisonbg@gmail.com

zzhangjii commented 6 years ago

Thanks for all the help! I will update the solutions in README!

cchorn commented 6 years ago

Thank you. export NODE_OPTIONS=--max-old-space-size=16000 then jupyter labextension install jupyterlab_voyager_test also works inside a Docker container