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

Plots do not display in Windows #39

Open
hiro14 opened this issue May 15, 2021 · 1 comment
Open

Plots do not display in Windows #39

hiro14 opened this issue May 15, 2021 · 1 comment

Comments

@hiro14
Copy link

hiro14 commented May 15, 2021

Maybe not a duplicate of #30 , and I tried to describe the situation in the title.

  • Windows 10 20H2
  • Cytoscape 3.7.2=>3.8.2
  • scNetViz 1.2.0=>1.5.0
  • Java 11.0.11

Not sure if it's a known problem. Plotting UMAP, tSNE or heatmap from any datasets always returned blank pages. Tried with different platforms but plotting works fine in both Linux and macOS.

As there seems no walkaround for scNetViz to plot in the Windows default browser, I firstly guessed if an older version of CyBrowser could solve it temporally. However, the plots remained empty after downgrading Cytoscape to 3.7.2.

Then I noticed that the generated plots were saved as webpages in the Windows user directory. Opened one of them like nullPlot.html in the default browser with developer tools. Got 4 errors in total and the leading one of them was Uncaught ReferenceError: Plotly is not defined.

This error may be universal across different applications using plotly.

Not sure if scNetViz itself is to render the plots by the embedded javascript according to the original codes, which seems disabled or incompatible in Windows.

Solved the problem temporally by include <script src="https://cdn.plot.ly/plotly-latest.min.js"></script> in the <head> section of the html codes instead of the embedded javascripts, so that the plots was correctly rendered.

@ZeBomb
Copy link

ZeBomb commented Jul 13, 2021

I have this problem as well and was able to use this temporary fix. Thank you!

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

2 participants