Skip to content

Plots do not display in Windows #39

@hiro14

Description

@hiro14

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions