Questions tagged [pyscript]

This tag is for general questions about the PyScript framework for running Python in the browser.

This tag is suitable for general questions about the PyScript framework for running Python in the browser.

PyScript allows running Python in the browser thanks to Pyodide implementing a WASM compiled version of the CPython interpreter.

Pure Python packages with wheels can be imported, and certain packages with C extensions (primarily from the scientific python stack) are made available thanks to Pyodide.

Issues with missing packages can be understood by reference here: https://pyodide.org/en/stable/development/new-packages.html and those which require C compilation may be better raised with the underlying Pyodide project as per these examples: https://github.com/pyodide/pyodide/labels/new%20package%20request

242 questions
7
votes
1 answer

How to use Pyscript python function in javascript?

I have a Javascript code and wanted to implement python functions using Pyscript. Simple Example: let's say I have a function: def addOne(a): value = int(a) + 1 return(value) and say I want to use this function in…
Hanbin Go
  • 91
  • 4
6
votes
1 answer

How do I use pyscript in my HTML code and return output

I am trying to call my python function created. But not getting any output and no resource how to achieve. Code :