126 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
90
views
Issue with pygame-ce in the Jupyter Notebook Demo
Every time I run any pygame code in Jupyter Notebook (the online demo) it just crashes, giving an error that I've looked for everywhere, to no avail. I'm using the Pyodide Kernel, which apparently ...
4
votes
1
answer
239
views
Loading SciPy offline using Pyodide
I wish to load SciPy on Pyodide without using a CDN.
For that, I installed the pyodide package using npm, and within a webworker I ran
pyodide.loadPackage('/wheels/scipy-1.14.1-cp313-cp313-...
3
votes
0
answers
149
views
How can I execute Python code in Pyodide step by step?
I am using Pyodide in a simplistic browser-based Python IDE, created
mostly for teaching. I would like to add some debugging facilities, in
particular the ability to step through the program (e.g.,
...
tglas's user avatar
- 1,080
2
votes
1
answer
88
views
setup to get the python output displayed line by line during execution
I am working on building a web application that runs Python code in the browser using Web Workers and Pyodide. My goal is to display the output line by line in the browser/application as the code is ...
0
votes
0
answers
89
views
How can I use a compiled python code in pyscript?
I create a pyd compiled python file of a function called sm that calculate the sum of two numbers (just to test the use of compiled python file). The compiled file name is somme.pyd
To test I create ...
0
votes
1
answer
889
views
Jupyter Notebooks read CSV - using JupyterLite from under 'Try Jupyter' page
I am using Jupyter Notebooks under "https://jupyter.org/try" to read my csv file. I tried the following methods, and none of them works. I installed and imported pandas as pd.
top3 = pd....
2
votes
1
answer
127
views
Slow loading of the python code editor in a React-py application
I am developing an educational app with Next.js and react-py. The idea is that you study the theoretical material in little parts, and around each paragraph of text, you can run a Python code in a ...
0
votes
1
answer
741
views
imported module not found in class in Pyodide
I am trying to use pyodide with lxml and urllib3, for some reasons I don't understand, when I try to use urllib3 in a class supposed to be a Resolver for lxml etree I get an error NameError: name '...
1
vote
1
answer
83
views
online python compiller on javaScript
i have some html, js code
<!DOCTYPE html>
<html>
<head>
<title>Pyodide Example</title>
<script src="https://cdn.jsdelivr.net/pyodide/v0.21.3/full/pyodide.js&...
-1
votes
1
answer
335
views
Is it possible to install only the Scipy stats module with pip? [closed]
For my project I am only needing to import the stats and optimize module from Scipy. I would like to know if it is possible to install only these modules with pip? What alternatives do I have?
5
votes
1
answer
212
views
How to handle errors by JavaScript side in Pyodide
I'd like to catch errors thrown by Python side in Pyodide. To handle them in JavaScript side, i.e. use try-catch syntax in JS, how should I get the exception object?
For example, when NameError is ...
2
votes
2
answers
926
views
Typescript Error: Cannot find name 'FetchEvent'. Did you mean 'TouchEvent'
I integrated Pyodide into a big angular project using different npm packages.
Two of those packages are sync-message and pyodide.
Error-Message: Cannot find 'FetchEvent'.
I encounter the following ...
1
vote
1
answer
353
views
Get "prompt()" input from a web worker and return it from function?
I'm working with the pyodide library and i've ran into an issue, I need to add a handler for stdin, however I'm running pyodide in a web worker and I don't have access to the window or any sort of ...
0
votes
0
answers
174
views
Jupyterlite ImportError: cannot import name 'TypeAliasType' from 'typing_extensions' (/lib/python3.11/site-packages/typing_extensions.py)
On Jupyterlite, any cell I am trying to run never finishes loading in the notebook.
I use Chrome as a browser and if I open the browser's development tool with F12 and look at the error, it says:
...
0
votes
1
answer
246
views
Save and Read File into cookie or localStorage in PyScript
I am trying to write file in PyScript. Writing and reading is OK, but if I refresh the page, all changes are resetted. Can I make PyScript save specific file into localStorage? Like, /home/pyodide/...