Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬Register for the Oct 27 webinar.

Jupyter notebook not displaying ployly charts in Chrome -but firefox works

Hi, I’ve tried to use the Ployly R code in this blog/demo:

however, no chart appears. My browser is chrome Version 71.0.3578.98 (Official Build) (64-bit).

I read a post on Jupyter in verious browsers not being able to display SVG but that PNG work. Perhaps that has something to do with it?

The code works perfectly if I open Jupyter in Frefox and the Ploty charts do display. so this must be a Chrome issue.

Please tell me how to get this code working in chrome and generate the great looking charts in the demo.

Her is the first code that didnt generate a chart:

Scatter Plot

library(plotly)
set.seed(123)
x <- rnorm(1000)
y <- rchisq(1000, df = 1, ncp = 0)
group <- sample(LETTERS[1:5], size = 1000, replace = T)
size <-
sample(1:5, size = 1000, replace = T)
ds <- data.frame(x, y, group, size) p <-
plot_ly(ds, x = x, y = y, mode = “markers”, split = group, size = size) %>% layout(title = “Scatter Plot”) embed_notebook§

Here the errors I ge
No trace type specified:
Based on info supplied, a ‘scatter’ trace seems appropriate.
Read more about this trace type -> https://plot.ly/r/reference/#scatter
Warning message:
"line.width does not currently support multiple values."Warning message:
"line.width does not currently support multiple values."Warning message:
"line.width does not currently support multiple values."Warning message:
"line.width does not currently support multiple values.“Warning message:
"line.width does not currently support multiple values.”