-
Notifications
You must be signed in to change notification settings - Fork 65
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
Jupyter notebook is not displaying charts inline #412
Comments
Can you paste the code you executed that resulted in this console log? A minimal reproduction if possible. |
(the actual code text rather than a screenshot, please) |
The mention of |
This is working fine with jupyter lab, only issue is with jupyter notebook. I just noticed jupyter-vega.js is not loading in the browser, infact I saved 'jupyter-vega.js' on my desktop and found no script was in the file i.e, it was a blank file. |
import altair as alt
from vega_datasets import data
alt.renderers.enable('notebook')
source = data.seattle_weather()
alt.Chart(source).mark_bar(
cornerRadiusTopLeft=3,
cornerRadiusTopRight=3
).encode(
x='month(date):O',
y='count():Q',
color='weather:N'
) |
Thanks. My current guess is it's a browser configuration/firewall issue as I mentioned above. I'm not sure I'm going to be able to help beyond giving you that bread-crumb trail to follow. I suggest you look into your local browser/firewall configuration to try and figure out why it's blocking the page from loading the javascript associated with the ipyvega nbextension. Unfortunately, that's not something that's easy to help with from afar. |
Thank you for your great help and suggestion. I will look into your comments and figure it out if possible with me. Meantime I have jupyter lab, and will progress with it. |
Can you try again with the latest master? |
Hello, I am trying to render Altair charts in jupyter notebook, but I am getting only blank inline output.
I am using "alt.renderers.enable('notebook')" renderer option in my jupyter notebook.
'Mimetype' renderer is working fine in jupyter lab.
I have attached browser console for more details, kindly advise me to how can I solve the issue?
Altair version - 4.2.0
Vega version - 3.6.0
Jupyter notebook version - 6.4.10
ipykernel 6.4.1
ipython 8.2.0
ipywidgets 7.6.5
Browser Mozilla Firefox
Please do the needful
Thank you
The text was updated successfully, but these errors were encountered: