ucsd-ccbb / visJS2jupyter

visJS2jupyter is a tool to bring the interactivity of networks created with vis.js into jupyter notebook cells
MIT License
78 stars 17 forks source link

Blank space in Jupyter Notebook #21

Open s231644 opened 6 years ago

s231644 commented 6 years ago

Hi! I have a problem with displaying graphs on the cells (I am using Python 3.6 and Anaconda). When I run examples from "notebooks" folder I get an empty cell ( default ). But if I export data to a separate HTML file and open it in a browser it's OK ( default ). What can I do to see the content right on the Jupyter Notebook cells?

brinrosenthal commented 6 years ago

Hi there,

This issue has been brought up a couple times. It appears to be windows and/or browser related. We are working on finding a solution. Thanks!

MBeuttler commented 6 years ago

Same issue here when working with jupyter in a docker container

@s231644 How did you export the data?

s231644 commented 6 years ago

Same issue here when working with jupyter in a docker container

@s231644 How did you export the data?

I used ".data" attribute to get HTML code and then just saved it.

visJS_module.visjs_network(...).data

bjodah commented 5 years ago

I'm experiencing this issue as well. Saving to a separate HTML file works (but breaks the work flow obviously...).

brinrosenthal commented 5 years ago

Potential fix posted by another user (issue #22 Uncaught DOMException: Blocked a frame with origin "null" from accessing a cross-origin frame). Any luck trying this out?

almereyda commented 5 years ago

The fix posted in #22 by @analytics-bootcamp with manipulating HTTP headers via a reverse proxy when using a Jupyter Docker setup seems not viable for everyday use cases.

I can confirm that the Content Security Policy breaks the graph display for me, too.

The way with using the raw HTML visJS_module.visjs_network(...).data of the <iframe /> and supplying the style_file0.html alongside allowed me to see my graph, too!

madimov commented 4 years ago

It's been a while, but has anyone happened to have come up with any other potential fixes?

kinoc commented 3 years ago

Using Firefox on Windows this extension seems to fix it for me: https://addons.mozilla.org/en-US/firefox/addon/ignore-x-frame-options-header https://github.com/ThomazPom/Moz-Ext-Ignore-X-Frame-Options Also check any ad-blocker settings to "allow all this tab".