2022-08-01
6298
#js libraries#python
Stanley Ulili
126105
Aug 1, 2022 â‹… 22 min read

Intro to PyScript: Run Python in the browser

Stanley Ulili I'm a freelance web developer and researcher from Malawi. I love learning new things, and writing helps me understand and solidify concepts. I hope by sharing my experience, others can learn something from them.

Recent posts:

A Guide To Object.groupBy: An Alternative To Array.reduce

A guide to Object.groupBy: An alternative to Array.reduce

Learn how Object.groupBy and Map.groupBy improve JavaScript data grouping over reduce, with performance benchmarks and comparisons.

Sebastian Weber
Feb 5, 2025 â‹… 4 min read
Best CI/CD tools for React Native

Best CI/CD tools for React Native

Get a high-level comparison of five of the most popular and well-used CI/CD tools for React Native apps, including the features they support.

Hussain Arif
Feb 5, 2025 â‹… 7 min read
chrome dev tools for API mocking

How to use Chrome DevTools for API mocking

API Mocking allows frontend developers to simulate the responses and behaviors of a live API, such as error handling, timeouts, and specific status codes in real time. Chrome DevTools Local Overrides make this even easier.

Emmanuel John
Feb 4, 2025 â‹… 7 min read
How To Implement View Transitions In Multi-Page Apps

How to implement view transitions in multi-page apps

Enhance navigation in multi-page apps using the View Transition API, CSS, and JavaScript — no heavy frameworks needed.

Rob O'Leary
Jan 31, 2025 â‹… 12 min read
View all posts

One Reply to "Intro to PyScript: Run Python in the browser"

  1. My script executes on page load. How can I avoid that:

    #—HTML code—-
    My Status :

    Submit

    #——on the same HTML page, py script code below ———

    import asyncio
    import json
    from request import request # import our request function.
    from pyodide.http import pyfetch, FetchResponse

    async def submit(*ags, **kws):
    #{ …..some code….}

Leave a Reply