Questions tagged [pyodide]

Please prefer using tags for the contained packages with questions which are more specifically related to them. Pyodide brings the Python 3.8 runtime to the browser via WebAssembly, along with the Python scientific stack including NumPy, Pandas, Matplotlib, parts of SciPy, and NetworkX.

Pyodide brings the Python 3.8 runtime to the browser via WebAssembly, along with the Python scientific stack including NumPy, Pandas, Matplotlib, parts of SciPy, and NetworkX.

Home (and source of above quote):
https://github.com/iodide-project/pyodide

110 questions
0
votes
1 answer

python imprt own function in html page

knowing that with and can execute python code in html However, importing own function facing error (PY1001): Unable to install package(s) 'bread'. Reason: Can't find a pure Python 3 Wheel for package(s) 'bread'. See:…
joy.socl
  • 3
  • 2
0
votes
0 answers

Dyodide: How do you handle stdin correctly?

I'm new to pyodide, I decided to try to use it for an open-source educational software: https://talco-team.github.io/TALightDesktop (live demo) For the time being I've done my best following the loadPyodide…
Cesar
  • 4,418
  • 2
  • 31
  • 37
0
votes
0 answers

Pyscript run all code blocks on one click

I want to run all code blocks on one click. Pyscript does have a run button on all of the but I want to run all of blocks on single click and show output as one. Further I want to add new on click. Right now library adds new…
Jamshaid Tariq
  • 551
  • 1
  • 8
  • 31
0
votes
0 answers

Pyscript: upload txt file make lowercase then download

I am trying to make a simple example of a pyscript/html file that does the following. Select a txt file Click convert button. This uploads the file The contents of the file is made all lowercase The lowercase text is displayed Download button to…
Vincent
  • 1,579
  • 4
  • 23
  • 38
0
votes
1 answer

How can I run my python file on the web via pyodide

I have written a python code with which I can get the bluetooth data of the surrounding Devices. I need to run this code on the browser and it should be able to see the data of the surrounding ibeacon devices when everyone is requested by the…
0
votes
0 answers

Set JS sessionStorage item within PyScript

I am trying to set a Javascript local variable within a PyScript script (directly in Python): from js import sessionStorage from js import window from js import alert from pyodide import create_proxy, to_js word2 = "hello" word3 =…
user3535901
  • 3,518
  • 2
  • 13
  • 10
0
votes
1 answer

How to suppress Pyodide Warning in PyScript?

I have the following PyScript + HTML example and I get the following error: /lib/python3.10/site-packages/pyodide/__init__.py:74: FutureWarning: pyodide.create_proxy has been moved to pyodide.ffi.create_proxy Accessing it through the pyodide module…
0
votes
0 answers

How to use pyo-js-turtle in Pyodide

My initial target is add turtle module in pyodide. I looked up the document of pyodide and found that it could be loaded by Micropip. So I found pyo-js-turtle. But when I import it, it turns out that result. Anyone who give me a hand would be…
interlink
  • 1
  • 1
0
votes
0 answers

PyScript + Pyodide + MySQL DB connection = WebSockets problem, can't connect to my DB

I'm trying to figure out why I can't connect to the MySQL database from JavaScript/PyScript project. Here's my index.html:
0
votes
0 answers

How to install pyodide package on vs code

I want to use the pyodide package on a data analysis project on vs code but i can't install this packcage , I need help please I tried to run pip install pyodide but i have this problem : Collecting pyodide Using cached pyodide-0.0.2.tar.gz (19…
0
votes
1 answer

Can't display Pyodide output to textarea element

I'm having trouble displaying a pyodide Python output to a textarea element called 'output'. I'm using react/next.js and when the page loads I want to see the python output in the textarea box but it only displays the following: >>> [object…
StackUnderFlow
  • 339
  • 1
  • 11
  • 36
0
votes
0 answers

Why am I unable to build pyodide?

I find myself attempting to build pyodide from sources on a linux machine. However an attempt to run the make command gives me the following permission denied error. savakar@Qulal:/media/savakar/PROJECTS/pyodide$…
0
votes
0 answers

Python in React application using Pyodide Unknown Type on RunPython

I'm trying to run pyodide in my browser window, but using the following code I'm greeted with the following error: I'm importing the pyodide cdn with my index.html:
user1470034
  • 671
  • 2
  • 8
  • 23
0
votes
0 answers

How to install 'qiskit' in pyodide or jupyter-lite in backend?

According to jupyter-lite doc pyodide is used to add packages default in jupyter-lite. I need help in creating module and I didn't understand how to create and use that in jupyter-lite. Also if I use import piplite await…
shraysalvi
  • 303
  • 1
  • 10
0
votes
1 answer

Is there a way to include a brew instillation in a python build?

I'm trying to build a speech recognition application that works in a browser. Currently using pyodide with a web worker. I have my own package, built alongside pyaudio, that I use for the web worker. Is there a way that I can include a brew…
Luke
  • 3
  • 1