# PyScript

**URL:** https://forum.anaconda.com/c/tech-topics/pyscript/41.md?page=2

[Latest](https://forum.anaconda.com/latest.md) · [Categories](https://forum.anaconda.com/categories.md) · [Tags](https://forum.anaconda.com/tags.md)

**Page:** 3

---

## [How to set event listener on pyscript libs loading?](https://forum.anaconda.com/t/how-to-set-event-listener-on-pyscript-libs-loading/46708)

<div class="topic-metadata">

**Author:** [@coderavel](https://forum.anaconda.com/u/coderavel)\
**Replies:** 0\
**Last updated:** [December 1, 2022, 6:56am UTC](https://forum.anaconda.com/t/how-to-set-event-listener-on-pyscript-libs-loading/46708 "2022-12-01T06:56:03Z")

</div>

hi everyone~ i am from korea, so i can’t english well. sorry. i have a question. please help me~!! i want to set event listener on pyscript librarys loading. How can I do this with JavaScript code? thank you !

---

## [Is local module import broken?](https://forum.anaconda.com/t/is-local-module-import-broken/46102)

<div class="topic-metadata">

**Author:** [@mark.d.lattimore](https://forum.anaconda.com/u/mark.d.lattimore)\
**Replies:** 2\
**Last updated:** [November 20, 2022, 11:37pm UTC](https://forum.anaconda.com/t/is-local-module-import-broken/46102 "2022-11-20T23:37:42Z")

</div>

I was having trouble importing local modules, getting a “ModuleNotFoundError.” Sure that I was setting up py-config correctly, I copied and pasted the example scripts from the documentation (see below) and got the same e…

---

## [Pyscript source code](https://forum.anaconda.com/t/pyscript-source-code/44604)

<div class="topic-metadata">

**Author:** [@Andres\_Chavarría](https://forum.anaconda.com/u/Andres_Chavarr%C3%ADa)\
**Replies:** 1\
**Last updated:** [November 4, 2022, 3:41pm UTC](https://forum.anaconda.com/t/pyscript-source-code/44604 "2022-11-04T15:41:57Z")

</div>

Hi, all I want to ask if, is there a way to get the py-script souce code for pyscript.css and pyscript.js to only use local calls when I create the HTML file? O mean, ir Is to Change the calls dos for pyscript.css and py…

---

## [Do we need Jinja any more?](https://forum.anaconda.com/t/do-we-need-jinja-any-more/23685)

<div class="topic-metadata">

**Author:** [@shahin.rmz](https://forum.anaconda.com/u/shahin.rmz)\
**Replies:** 6\
**Last updated:** [November 1, 2022, 11:05am UTC](https://forum.anaconda.com/t/do-we-need-jinja-any-more/23685 "2022-11-01T11:05:02Z")

</div>

Hello, I am very excited about Pyscript project. we can be independent from JS (at least on the surface) in order to bring our projects up. A question though, with the help of pyscript we can be free from Jinja? I’m…

---

## [Pyodide\_py.tar blocked](https://forum.anaconda.com/t/pyodide-py-tar-blocked/43716)

<div class="topic-metadata">

**Author:** [@mcmastc1](https://forum.anaconda.com/u/mcmastc1)\
**Replies:** 3\
**Last updated:** [October 31, 2022, 3:14pm UTC](https://forum.anaconda.com/t/pyodide-py-tar-blocked/43716 "2022-10-31T15:14:18Z")

</div>

As a side direct effect of creating pyscript, you’re going to get webdev idiots like me asking questions, so apologies in advance. My organization seems to be blocking tar files, so all PyScript sites fail to load. Here…

---

## [How to install custom packages with PyScript?](https://forum.anaconda.com/t/how-to-install-custom-packages-with-pyscript/20216)

<div class="topic-metadata">

**Author:** [@raymond.lo](https://forum.anaconda.com/u/raymond.lo)\
**Replies:** 4\
**Last updated:** [October 18, 2022, 12:52pm UTC](https://forum.anaconda.com/t/how-to-install-custom-packages-with-pyscript/20216 "2022-10-18T12:52:09Z")

</div>

Any suggestions on how to make it work with micropip? File "/lib/python3.10/site-packages/micropip/\_micropip.py", line 286, in add\_requirement raise ValueError( ValueError: Couldn't find a pure Python 3 wheel for …

---

## [folium.Choropleth Where is my mistake?](https://forum.anaconda.com/t/folium-choropleth-where-is-my-mistake/41859)

<div class="topic-metadata">

**Author:** [@Walter\_Richtscheid](https://forum.anaconda.com/u/Walter_Richtscheid)\
**Replies:** 8\
**Last updated:** [October 17, 2022, 11:51am UTC](https://forum.anaconda.com/t/folium-choropleth-where-is-my-mistake/41859 "2022-10-17T11:51:57Z")

</div>

Hello all, The main question: at the moment, is it basically possible to use “folium.Choropleth” without any trouble. Folium alone does not cause any problems, MAP\_LOC = \[48.88774545, 10.092337\] # here Ostalbkreis m…

---

## [PyScript Community Call - Oct 18 at 11AM CST](https://forum.anaconda.com/t/pyscript-community-call-oct-18-at-11am-cst/42033)

<div class="topic-metadata">

**Author:** [@tpatrick](https://forum.anaconda.com/u/tpatrick)\
**Replies:** 0\
**Last updated:** [October 11, 2022, 5:45pm UTC](https://forum.anaconda.com/t/pyscript-community-call-oct-18-at-11am-cst/42033 "2022-10-11T17:45:45Z")

</div>

On October 18, 2022, at 11 AM CST, the PyScript Core Team will host our 1st PyScript Community Call. PyScript Community Call Status Report Highlights Q&A We will be organizing the Q&A from questions posted to this i…

---

## [How to import a local package, e.g biopython](https://forum.anaconda.com/t/how-to-import-a-local-package-e-g-biopython/41469)

<div class="topic-metadata">

**Author:** [@marco](https://forum.anaconda.com/u/marco)\
**Replies:** 2\
**Last updated:** [October 10, 2022, 3:07am UTC](https://forum.anaconda.com/t/how-to-import-a-local-package-e-g-biopython/41469 "2022-10-10T03:07:18Z")

</div>

After installing biopython locally … pip install biopython How do I import biopython in PyScripts? Thanks.

---

## [Element(\<id\>).write](https://forum.anaconda.com/t/element-id-write/41661)

<div class="topic-metadata">

**Author:** [@Walter\_Richtscheid](https://forum.anaconda.com/u/Walter_Richtscheid)\
**Replies:** 3\
**Last updated:** [October 9, 2022, 11:52am UTC](https://forum.anaconda.com/t/element-id-write/41661 "2022-10-09T11:52:43Z")

</div>

I got lost in the forest: Element().write Hello, I have started quite a few attempts in combinations I can think of to use the new expression, but only get errors and now have no more ideas. I just want to change the …

---

## [Py-repl tag issue](https://forum.anaconda.com/t/py-repl-tag-issue/41071)

<div class="topic-metadata">

**Author:** [@drlee7](https://forum.anaconda.com/u/drlee7)\
**Replies:** 2\
**Last updated:** [October 3, 2022, 2:42pm UTC](https://forum.anaconda.com/t/py-repl-tag-issue/41071 "2022-10-03T14:42:31Z")

</div>

I appreciate providing your greate framework ! I’m gonna write an e-book about pyscript. In the testing tag, I found that only last one is written, below this script code. —‐-------- for i, j in enumerate(‘abcde’)…

---

## [Modular imports for PyScript?](https://forum.anaconda.com/t/modular-imports-for-pyscript/40712)

<div class="topic-metadata">

**Author:** [@gunnar](https://forum.anaconda.com/u/gunnar)\
**Replies:** 1\
**Last updated:** [September 30, 2022, 3:13pm UTC](https://forum.anaconda.com/t/modular-imports-for-pyscript/40712 "2022-09-30T15:13:34Z")

</div>

When I look at the examples (e.g. PyScript Hello World), I see that it is not loading pyscript as a script, but instead seems to include its source tree and do modular imports (see below). Is that a supported way of usin…

---

## [Returning array from JS](https://forum.anaconda.com/t/returning-array-from-js/39417)

<div class="topic-metadata">

**Author:** [@gunnar](https://forum.anaconda.com/u/gunnar)\
**Replies:** 2\
**Last updated:** [September 26, 2022, 4:02pm UTC](https://forum.anaconda.com/t/returning-array-from-js/39417 "2022-09-26T16:02:32Z")

</div>

What is the best way to return an array from JS? If I just return a JS array, I need to call .to\_py() in python to make it useful. I would like to handle this in the JS code. If pyodide was accessible, I would call pyodi…

---

## [When will we see slice indexing?](https://forum.anaconda.com/t/when-will-we-see-slice-indexing/39419)

<div class="topic-metadata">

**Author:** [@gunnar](https://forum.anaconda.com/u/gunnar)\
**Replies:** 1\
**Last updated:** [September 26, 2022, 5:04am UTC](https://forum.anaconda.com/t/when-will-we-see-slice-indexing/39419 "2022-09-26T05:04:19Z")

</div>

I was surprised to get an error that it is not implemented. Obviously, this is one of the features that Python users always go gaga over, are there plans to implement it? Is there a list of missing language features some…

---

## [Executing dynamically created \<pyscript\>](https://forum.anaconda.com/t/executing-dynamically-created-pyscript/21327)

<div class="topic-metadata">

**Author:** [@gunnar](https://forum.anaconda.com/u/gunnar)\
**Replies:** 15\
**Last updated:** [September 25, 2022, 3:34am UTC](https://forum.anaconda.com/t/executing-dynamically-created-pyscript/21327 "2022-09-25T03:34:52Z")

</div>

I am trying to create a div containing a new pyscript and output section. But What do I need to call tun run the new pyscript code? Or at least a declared function within it? let outputID = "blah" let div = document.cre…

---

## [Runtime issues when using \<py-config\> tag](https://forum.anaconda.com/t/runtime-issues-when-using-py-config-tag/38259)

<div class="topic-metadata">

**Author:** [@neha.educational](https://forum.anaconda.com/u/neha.educational)\
**Replies:** 6\
**Last updated:** [September 22, 2022, 12:40pm UTC](https://forum.anaconda.com/t/runtime-issues-when-using-py-config-tag/38259 "2022-09-22T12:40:25Z")

</div>

I’m trying to use a higher version of pyodide with pyscript by including the tag: - autoclose\_loader: false - runtimes: - src: "https://cdn.jsdelivr.net/pyodide/v0.21.2/full/pyodide.js" …

---

## [PyScript + p5.js](https://forum.anaconda.com/t/pyscript-p5-js/26128)

<div class="topic-metadata">

**Author:** [@andrew.hannum](https://forum.anaconda.com/u/andrew.hannum)\
**Replies:** 24\
**Last updated:** [September 21, 2022, 10:00am UTC](https://forum.anaconda.com/t/pyscript-p5-js/26128 "2022-09-21T10:00:19Z")

</div>

Hi all, I’m trying to see if I can get PyScript working with p5.js, and wondering if anyone more experienced could offer some perspective. So far I’m able to add both scripts, and get PyScript to import something called…

---

## [DOM manipulation with PyScript](https://forum.anaconda.com/t/dom-manipulation-with-pyscript/37999)

<div class="topic-metadata">

**Author:** [@mark.d.lattimore](https://forum.anaconda.com/u/mark.d.lattimore)\
**Replies:** 2\
**Last updated:** [September 19, 2022, 6:08pm UTC](https://forum.anaconda.com/t/dom-manipulation-with-pyscript/37999 "2022-09-19T18:08:07Z")

</div>

This might be one of those “We could do it, but why would we want to” questions (or maybe it has already been addressed, and I missed it), but here goes. I know that PyScript has some limited ability to interact with the…

---

## [Import gevent module in PyScript](https://forum.anaconda.com/t/import-gevent-module-in-pyscript/36709)

<div class="topic-metadata">

**Author:** [@ericbegny](https://forum.anaconda.com/u/ericbegny)\
**Replies:** 7\
**Last updated:** [September 18, 2022, 6:48am UTC](https://forum.anaconda.com/t/import-gevent-module-in-pyscript/36709 "2022-09-18T06:48:17Z")

</div>

How to import gevent module in PyScript ? I tried the following things : in py-script import gevent ModuleNotFoundError: No module named ‘gevent’ in py-env – gevent ValueError: Couldn’t find a pure Python 3 wheel …

---

## [pys-onClick function firing without click](https://forum.anaconda.com/t/pys-onclick-function-firing-without-click/31031)

<div class="topic-metadata">

**Author:** [@mark.d.lattimore](https://forum.anaconda.com/u/mark.d.lattimore)\
**Replies:** 5\
**Last updated:** [September 15, 2022, 11:10am UTC](https://forum.anaconda.com/t/pys-onclick-function-firing-without-click/31031 "2022-09-15T11:10:28Z")

</div>

This seems to be a not-uncommon question in JS circles, but I can’t seem to formulate a solution within PyScript. Below is a rudimentary setup for what will become a “rock paper scissors” game. The idea is to have the us…

---

## [My PyScript Tutorial Playlist](https://forum.anaconda.com/t/my-pyscript-tutorial-playlist/25235)

<div class="topic-metadata">

**Author:** [@1littlecoder](https://forum.anaconda.com/u/1littlecoder)\
**Replies:** 10\
**Last updated:** [September 12, 2022, 7:08pm UTC](https://forum.anaconda.com/t/my-pyscript-tutorial-playlist/25235 "2022-09-12T19:08:11Z")

</div>

I’ve created a YouTube Tutorial Playlist with 11 videos about PyScript. It covers topics like DOM Manipulation CSV Uploading and goes all the way to building a Machine Learning Model Would love to hear your though…

---

## [How can I share an image with navigator.share?](https://forum.anaconda.com/t/how-can-i-share-an-image-with-navigator-share/35934)

<div class="topic-metadata">

**Author:** [@ilai.keinan](https://forum.anaconda.com/u/ilai.keinan)\
**Replies:** 1\
**Last updated:** [September 12, 2022, 1:06pm UTC](https://forum.anaconda.com/t/how-can-i-share-an-image-with-navigator-share/35934 "2022-09-12T13:06:10Z")

</div>

I using it like this: async def share\_eq(e): base64url = document.getElementById('img').src blob = await (await fetch(base64url)).blob() file = File.new(\[blob\], 'eq.png', {type: blob.type}) navigator.sha…

---

## [PyScript accessibility](https://forum.anaconda.com/t/pyscript-accessibility/35828)

<div class="topic-metadata">

**Author:** [@benjiallen](https://forum.anaconda.com/u/benjiallen)\
**Replies:** 4\
**Last updated:** [September 12, 2022, 1:05am UTC](https://forum.anaconda.com/t/pyscript-accessibility/35828 "2022-09-12T01:05:11Z")

</div>

I love the promise of PyScript. “Programming for the 99%” sounds like a vision centred in inclusivity. To cement this principle I’d like to see a commitment to digital accessibility and the web content accessibility guid…

---

## [How to use Datastore in pyscript?](https://forum.anaconda.com/t/how-to-use-datastore-in-pyscript/35152)

<div class="topic-metadata">

**Author:** [@samuelsilvaop](https://forum.anaconda.com/u/samuelsilvaop)\
**Replies:** 1\
**Last updated:** [September 8, 2022, 8:05pm UTC](https://forum.anaconda.com/t/how-to-use-datastore-in-pyscript/35152 "2022-09-08T20:05:13Z")

</div>

I’m trying to import, but I get several errors, depending on how I import. Importing from other libraries like matplot, numpy… works. \<py-env\> - matplotlib - google-cloud-datastore \</py-env\> \<…

---

## [Helloworldagain](https://forum.anaconda.com/t/helloworldagain/35047)

<div class="topic-metadata">

**Author:** [@gabydunst79](https://forum.anaconda.com/u/gabydunst79)\
**Replies:** 0\
**Last updated:** [September 8, 2022, 8:23am UTC](https://forum.anaconda.com/t/helloworldagain/35047 "2022-09-08T08:23:23Z")

</div>

Fortsetzung der Diskussion von About the Getting Starthx ted category: ‘Hello on board . Shameless accepting lessons. Yes with pycharm, but ot does the mane work like doing a main, importing everything needed. So I’m…

---

## [Setting up and accessing SageMaker API](https://forum.anaconda.com/t/setting-up-and-accessing-sagemaker-api/33879)

<div class="topic-metadata">

**Author:** [@Vilas\_Tulachan1](https://forum.anaconda.com/u/Vilas_Tulachan1)\
**Replies:** 1\
**Last updated:** [September 6, 2022, 5:38am UTC](https://forum.anaconda.com/t/setting-up-and-accessing-sagemaker-api/33879 "2022-09-06T05:38:19Z")

</div>

I have created a sagemaker env and installed all the necessary libraries - pandas, boto3, sagemaker. I can to Environment, select my sagemaker env and open iPython and then import all these three libraries with no errors…

---

## [Pyodide version used with Pyscript](https://forum.anaconda.com/t/pyodide-version-used-with-pyscript/33271)

<div class="topic-metadata">

**Author:** [@tunguz](https://forum.anaconda.com/u/tunguz)\
**Replies:** 2\
**Last updated:** [September 1, 2022, 12:48pm UTC](https://forum.anaconda.com/t/pyodide-version-used-with-pyscript/33271 "2022-09-01T12:48:12Z")

</div>

Is there a way to find out which version of Pyodide is being used with Pyscript? There are some updates in the 0.21 version of Pyodide that I don’t believe are yet accessible with Pyscript. Thanks, Bojan

---

## [Is pyscript blocked?](https://forum.anaconda.com/t/is-pyscript-blocked/32080)

<div class="topic-metadata">

**Author:** [@saddibek1](https://forum.anaconda.com/u/saddibek1)\
**Replies:** 4\
**Last updated:** [August 31, 2022, 9:45pm UTC](https://forum.anaconda.com/t/is-pyscript-blocked/32080 "2022-08-31T21:45:32Z")

</div>

Hello. I’m from Uzbekistan and I want use pyscript. But pyscript.net doesn’t work. If I use VPN it’s works.

---

## [Call .py file with arguments](https://forum.anaconda.com/t/call-py-file-with-arguments/32942)

<div class="topic-metadata">

**Author:** [@anaconda1](https://forum.anaconda.com/u/anaconda1)\
**Replies:** 2\
**Last updated:** [August 30, 2022, 2:58pm UTC](https://forum.anaconda.com/t/call-py-file-with-arguments/32942 "2022-08-30T14:58:15Z")

</div>

When using \<py-script src="/myscript.py"\>\</py-script\> I would like to call it with arguments since myscript.py can be called from the command line like myscript.py arg1 arg2. How can I envoke this in pyscript? \<py-scrip…

---

## [Help please with my AI. I can't give the wanted orders](https://forum.anaconda.com/t/help-please-with-my-ai-i-cant-give-the-wanted-orders/32231)

<div class="topic-metadata">

**Author:** [@gabydunst79](https://forum.anaconda.com/u/gabydunst79)\
**Replies:** 1\
**Last updated:** [August 26, 2022, 2:02pm UTC](https://forum.anaconda.com/t/help-please-with-my-ai-i-cant-give-the-wanted-orders/32231 "2022-08-26T14:02:54Z")

</div>

I'm not very advanced. But I want to extend theses prefixed routines of bixby. Can anybody help me, how to do with a python script? I use 3 and Pycharm for 3. The Bixby routines are not easy to extend with functions more…

[Previous page](https://forum.anaconda.com/c/tech-topics/pyscript/41.md?page=1)

[Next page](https://forum.anaconda.com/c/tech-topics/pyscript/41.md?page=3)
