GithubHelp home page GithubHelp logo

Comments (12)

mdboom avatar mdboom commented on July 30, 2024

Did you wait for Python to initialize in the first cell before continuing to the next? (This is a known issue that should be addressed shortly). Python code won't work until "Python initialization is complete" is displayed in the console, which takes a few seconds depending on the speed of your connection.

from pyodide.

mdboom avatar mdboom commented on July 30, 2024

Here's where the solution is being worked on: iodide-project/iodide#554

from pyodide.

mdboom avatar mdboom commented on July 30, 2024

This should be resolved now, but it would be great to have confirmation from the original poster, @jedie.

from pyodide.

jedie avatar jedie commented on July 30, 2024

grafik

from pyodide.

mdboom avatar mdboom commented on July 30, 2024

Just to sanity check: You ran all cells above this one first, and the promise resolved? Is there anything in the Javascript console?

from pyodide.

jedie avatar jedie commented on July 30, 2024

That's it. I only ran the second one with:

{
  "languageId": "py",
  "displayName": "python",
  "codeMirrorMode": "python",
  "keybinding": "p",
  "url": "https://iodide-project.github.io/pyodide-demo/pyodide.js",
  "module": "pyodide",
  "evaluator": "runPython",
  "pluginType": "language"
}

from pyodide.

mdboom avatar mdboom commented on July 30, 2024

If you open the networking debug pane (Ctrl+Shift+E), reload the page and run those cells, are there any network errors?

from pyodide.

jedie avatar jedie commented on July 30, 2024

grafik

from pyodide.

jedie avatar jedie commented on July 30, 2024

Because of the long loading time, we added some visual actions while loading: Just print some "." see e.g.: http://pypyjs.org/editor.html

from pyodide.

mdboom avatar mdboom commented on July 30, 2024

Do you have any ad blockers on?

from pyodide.

mdboom avatar mdboom commented on July 30, 2024

Both the adblocking and Chrome compat issues should be resolved now. @jedie: as the OP, would you mind confirming that before I close this?

from pyodide.

mdboom avatar mdboom commented on July 30, 2024

I'm going to close this. I think it's been fixed for some time.

from pyodide.

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.