Giter Club home page Giter Club logo

Comments (6)

rchiodo avatar rchiodo commented on May 18, 2024 1

Yeah I get the same results. I had to rerun the cell more than once for it to work. I believe this is the problem/feature:

https://stackoverflow.com/questions/44943646/jupyter-notebook-not-trusted

Not sure if we want to auto trust a notebook or not. Probably not. It's better to force you to mark it that way I think.

from vscode-jupyter.

amittleider avatar amittleider commented on May 18, 2024

Hi Jim, it appears that when I export, my plotly charts do not render in the browser. Is that expected?

It would be even better if I could simply save the output of a single cell (a plotly graph, for example) and then re-open it in VSCode later.

from vscode-jupyter.

rchiodo avatar rchiodo commented on May 18, 2024

@amittleider this is not expected. Do you have an example notebook you can share? If you rerun the cell does it work?

Your other comment would make a good suggestion. Can you enter a new issue? Thanks.

from vscode-jupyter.

amittleider avatar amittleider commented on May 18, 2024

@rchiodo Yes, here is a sample notebook:

#%% 
import plotly
plotly.offline.init_notebook_mode()
import plotly.offline as plotly
import plotly.graph_objs as go
import numpy as np

x = np.random.randn(500)
data = [go.Histogram(x=x)]

plotly.iplot(data, filename='basic histogram')

And here is a gif showing the results:
norenderinbrowser

I tried your suggestion to re-run the cell, but it still doesn't render.

from vscode-jupyter.

rchiodo avatar rchiodo commented on May 18, 2024

@ronglums what do you think? Should we auto trust exported notebooks so that javascript will run inside of them on first open?

from vscode-jupyter.

amittleider avatar amittleider commented on May 18, 2024

@rchiodo Thanks! I didn't realize there was a trusted/untrusted feature of jupyter notebooks. You're right, I simply click the "Not trusted" button to toggle it on, and the javascript renders.

from vscode-jupyter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.