Description
The F# kernel should support returning the Plotly mime type:
https://github.com/plotly/plotly.py/blob/f65724f06b894a5db94245ee4889c632b887d8ce/plotly/offline/offline.py#L347
plotly/plotly.py#562 (comment)
Supporting this will allow notebooks to be previewed with plotly graphs in a safe way. Because this is not currently supported the graphs are rendered using HTML + JavaScript which cannot be safely rendered.
Repro steps
See this notebook: https://notebooks.azure.com/library/HorsesForCourses/html/Ages.ipynb
It includes a Plotly graph but the rendering is all HTML. But if you look at a Python notebook:
https://notebooks.azure.com/dino/libraries/b4hsjDh0TBo/html/Using%20Plotly%20in%20Jupyter%20Notebooks%20on%20Microsoft%20Azure.ipynb
You can see with this Python notebook that includes the extra mime type response and that the chart renders:
https://notebooks.azure.com/dino/libraries/kphrQvkqZ6Y/html/Using%20Plotly%20in%20Jupyter%20Notebooks%20on%20Microsoft%20Azure.ipynb
Description
The F# kernel should support returning the Plotly mime type:
https://github.com/plotly/plotly.py/blob/f65724f06b894a5db94245ee4889c632b887d8ce/plotly/offline/offline.py#L347
plotly/plotly.py#562 (comment)
Supporting this will allow notebooks to be previewed with plotly graphs in a safe way. Because this is not currently supported the graphs are rendered using HTML + JavaScript which cannot be safely rendered.
Repro steps
See this notebook: https://notebooks.azure.com/library/HorsesForCourses/html/Ages.ipynb
It includes a Plotly graph but the rendering is all HTML. But if you look at a Python notebook:
https://notebooks.azure.com/dino/libraries/b4hsjDh0TBo/html/Using%20Plotly%20in%20Jupyter%20Notebooks%20on%20Microsoft%20Azure.ipynb
You can see with this Python notebook that includes the extra mime type response and that the chart renders:
https://notebooks.azure.com/dino/libraries/kphrQvkqZ6Y/html/Using%20Plotly%20in%20Jupyter%20Notebooks%20on%20Microsoft%20Azure.ipynb