DonJayamanne / vscodeJupyter

Jupyter for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=donjayamanne.jupyter
MIT License
335 stars 34 forks source link

Graph isn't shown in the result window #60

Open welien opened 7 years ago

welien commented 7 years ago

Environment data

VS Code version: 1.14.1 Jupyter Extension version: 1.1.3 OS and version: OS X 10.11.6 Plotly version: 2.0.9 (tried with 1.12.9 too)

Logs

Output from Jupyter output panel

Blank space approximately of the size of the potential graph

Output from Console window (Help->Developer Tools menu)


extensionHost.ts:320 [Extension Host] clientExists, on server
extensionHost.ts:320 [Extension Host] Object {id: "1500297165539"}
webview.ts:139 [Embedded Page] [object Object]
webview.ts:139 [Embedded Page] Uncaught ReferenceError: define is not defined
webview.ts:139 [Embedded Page] [object Object]
webview.ts:139 [Embedded Page] Uncaught ReferenceError: require is not defined

Actual behavior

Doesn't show the graph

Expected behavior

Shows the graph

Steps to reproduce:

from plotly import offline
offline.init_notebook_mode()

offline.iplot([{"y": [1, 2, 1]}])

Also, could you improve the result UI? It looks very simple and it would be cool if it had similar behaviour as Hydrogen for Atom.

admirabilis commented 7 years ago

From my tests, it seems vscodeJupyter doesn't support plotly at all.