Changes in Pyscript that may break your code

Pyscript allows you to use python code into an html file. This is an awesome project by the Anaconda team, so we are pretty sure it will be improved costantly. With some changes old code can be broken and so did my code I was using. Looking for solving this issue, I managed how to make it, so I want to share my discoveries with you, as I am used to do into this blog, I dunno if you were aware of this. Now you are. But, without further ado, as the awesome youtuber from all over the World introduce their vlogs, let’s get into my discoveries in the video. You will see – spoiler alert – that:

  • py-click substituted the more emphatic py-OnClick (this was too much linked to the javascript conventions, don’t you think?)
  • to test your page with pyscript, if you want to load an external script, you have to launch the html page launching a server, that with python is the most simple thing, but to know exactly how you gotta watch the video, otherwise nobody would see the video, I am a youtuber after all, even if a lazy one, as you can verify by the number of video that I recently (did not) posted.

Ok, too much said, let’s watch the video with this funny entertainer that is this blogger.

PS: a little hint on how to… guess what?


Subscribe to the newsletter for updates
Tkinter templates

Avatar My youtube channel

Twitter: @pythonprogrammi - python_pygame

Claude's Games

Arkanoid
Platform 2d

1. Memory game

Videos

Speech recognition game

Pygame's Platform Game

Other Pygame's posts

Advertisement