Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failing to render after vega3-extension install #100

Closed
smoh opened this issue Feb 24, 2018 · 4 comments
Closed

failing to render after vega3-extension install #100

smoh opened this issue Feb 24, 2018 · 4 comments

Comments

@smoh
Copy link

smoh commented Feb 24, 2018

I'm failing to render vega-lite charts in jupyterlab after vega3-extension is installed.

jupyterlab                0.31.8                   py36_1    conda-forge
---
$ jupyter labextension list
JupyterLab v0.31.8
Known labextensions:
   app dir: /Users/semyeong/anaconda2/envs/research/share/jupyter/lab
@jupyterlab/vega3-extension
        @jupyterlab/vega3-extension v0.14.2  enabled  OK

Trying to use altair, I get

JavaScript output is disabled in JupyterLab

I also tried copy-paste the example in vega3-extension README, and get empty output.
Can anyone help me getting this to work?

@domoritz
Copy link
Member

Can you check the browser console and update jupyter?

@smoh
Copy link
Author

smoh commented Feb 24, 2018

Yes, so I did the following update:

The following packages will be UPDATED:

    jupyter: 1.0.0-py36_3 --> 1.0.0-py36_4

Proceed ([y]/n)? y

jupyter-1.0.0- 100% |######################################################################| Time: 0:00:00   6.09 MB/s

In my browser console, I have
image

The same code works with just jupyter notebook or if I go to /notebooks/path/to/notebook and try executing there..

@domoritz
Copy link
Member

This extension only works in jupyter lab. You need https://github.com/vega/ipyvega for Jupyter notebooks.

@gnestor
Copy link
Collaborator

gnestor commented Feb 27, 2018

Closing... Feel free to re-open if the issue isn't resolved 👍

@gnestor gnestor closed this as completed Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants