-
Notifications
You must be signed in to change notification settings - Fork 884
display(HTML(html)) doesn't display anything #11
Comments
What browser are you using? #9 is about the visualizations not working in Safari and Firefox currently |
I also have the same problem of nothing showed up, and I am using Chrome and macOS Sierra 10.12.5. The followings are the procedures I opened and ran the 'Overview_demo.ipynb':
Awesome app and Thanks in advance! |
Same issue here, tried to run but nothing happens. so I tried with
|
I tried in both firefox and chrome. still don't show up the HTML display |
First thing to check is that the visualization is working correctly in the browser you are trying (and for now just try Chrome due to issue 9). Verify that the demo page visualizations show up correctly (https://pair-code.github.io/facets/). Then when you run all the cells in your jupyter notebook, check the chrome developers console for errors. Let me know of any errors you find. Another thing to check is that the jupter nbextension install command placed facets-jupyter.html in the appropriate location. I installed jupyter locally (using pip3 install --user), and my facets-jupyter ends up placed at "~/.local/share/jupyter/nbextensions/facets-dist/facets-jupyter.html". Since I installed jupyter locally, I ran "jupyter nbextension install --user facets-dist/" from the facets repo top-level dir to install the extension. |
@jameswex This worked for me (on Chrome) |
My jupyter is an anaconda installation but 'jupyter nbextension install --user facets-dist/' places it into the local path not into anaconda. After manually copying everyting works fine. looks awesome! |
@mstetter thanks! would it install to the right location if you did the command without the --user? |
@jameswex No, unfortunately it did not do that. not sure why and how to specify the installation location. (anaconda is in my path and the default python) |
@mstetter thanks for looking into it. @FabricioProjects @ccchang0111 I have updated the readme for installing the jupyter nbextension (see aaf19b2). Can you see if the issue was the nbextension not being installed to the right location for your jupyter installation? If so, try manually copying it to the right location as per the readme and see if that fixes the issue. |
@jameswex The manual copy of the facets-dist/ directory to the right path inside the anaconda environment works! Need to use Chrome. I'm closing this issue, ty all! |
It worked! I was using Canopy. So manually copy the folder to Enthough/Canopy/edm/envs/User/share/jupyter/nbextensions |
It doesn't display anything, I met this mistake: |
i'm sorry that my ipynb display nothing. I used the code like following: # Display the facets overview visualization for this data
from IPython.core.display import display, HTML
HTML_TEMPLATE = """<link rel="import" href="/nbextensions/facets-dist/facets-jupyter.html" >
<facets-overview id="elem"></facets-overview>
<script>
var data = {protostr};
alert(data)
alert(document.querySelector("#elem").protoInput);
document.querySelector("#elem").protoInput = data;
alert(document.querySelector("#elem").protoInput);
</script>"""
html = HTML_TEMPLATE.format(protostr=protostr)
display(HTML(html)) and then it shows the error:
However, when i used facets-dive, it worked well. |
Hi everyone, I have the same issue : When adding the lines : In the script (it helped for facets-dive) i get this message : Javascript error adding output! Do you know how to solve the issue ? and see the plots ? Thank you very much for your help |
@MeghanML I have the same issue. Do you get the visualizations in facets-overview now? |
|
anyone could make the overview work in jupyter?
i followed all the readme files and at end the display doesn't display anything and don't give me any errors too... i'm missing something?
The text was updated successfully, but these errors were encountered: