yWorks / yfiles-jupyter-graphs

The home of the Jupyter notebook graph visualization widget powered by yFiles for HTML
https://www.yworks.com/products/yfiles-graphs-for-jupyter
Other
173 stars 18 forks source link

w.show() not working in jupyter notebook #9

Closed SimonShapiro closed 2 years ago

SimonShapiro commented 2 years ago

Describe the bug I am not able to see the actual diagram, but I get no error messages.

To Reproduce

from networkx import connected_caveman_graph
from yfiles_jupyter_graphs import GraphWidget
w = GraphWidget()
w.show()

g = connected_caveman_graph(3, 4)
w.import_graph(g)
w.show()

Expected behavior I expected to see the diagram as in the example in guthub.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

yGuy commented 2 years ago

What do you see? Do you see the widget but just without a graph or nothing at all? No error messages whatsoever?

yGuy commented 2 years ago

Did you restart the notebook server after installing the widget?

SimonShapiro commented 2 years ago

Hi,

Thanks for coming back so quickly :-).

All good now; after close and halt on the notebook. Restart did not help.

I am so excited about the potential for this. It's something I was hoping to eventually be available.

Many thanks for building it.

Regards

Simon

On Fri, 24 Jun 2022 at 11:39, Sebastian Müller @.***> wrote:

Did you restart the notebook server after installing the widget?

— Reply to this email directly, view it on GitHub https://github.com/yWorks/yfiles-jupyter-graphs/issues/9#issuecomment-1165444886, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMXVZ4UE4Y63QKLKDR6WLDVQWF5TANCNFSM5ZXNKRMQ . You are receiving this because you authored the thread.Message ID: @.***>

yGuy commented 2 years ago

Would you mind adding a short comment about what the problem was in your case? Maybe someone else will find it helpful or we can improve the documentation. Thanks! If you are absolutely sure that nobody will run into the same issue, then of course, this is not necessary.

SimonShapiro commented 2 years ago

I solved the problem by "close and halt" on the notebook. Then I went back to the directory listing in the browser and re-opened the notebook. After that everything was fine.