Jupyter Games on Notebook.link

(notebook.link)

6 points | by SylvainCorlay 6 hours ago ago

4 comments

  • DerThorsten 5 hours ago ago

    Author here: If you want to skip the reading and directely want to go to the code, just go here https://notebook.link/@DerThorsten/jupyter-games

    A jupyter notebook which runs python in the browsers via wasm will wait for you. Pyb2d3, python bindings for box2d-3 are installed in the environment and are used to create tiny games / simulations in a hand full of lines of code.

    The goal of this is to make fun things like box2d accessible for educational purposes and similar, without the hussle of installing anything.

  • SylvainCorlay 6 hours ago ago

    How to create fun, interactive games using box2d and ipycanvas in Project Jupyter.

    An example of how Jupyter notebooks can be used for creative projects - like game development - while also serving as a blogging platform.

  • westurner 4 hours ago ago

    This says it will run pygame (and maybe pygame zero) in a jypyter notebook: https://github.com/Python-Ninja-Hebi/pygame-cookbook?tab=rea... :

      %gui qt
      import pygame
    
    Jupylet does 2D and 3D games in jupyter notebooks: https://github.com/nir/jupylet

    awesome-jupyter-in-education still lists a number of Games, Graphics, And Simulation resources: https://github.com/quobit/awesome-python-in-education#games-...

    Pybricks does Python programming on LEGO Smart Hubs, with WASM and NextJS and WebBluetooth for firmware flashing: https://github.com/quobit/awesome-python-in-education/issues...

    The Elecfreaks micro:bit sets work with a Microbit and drives included and a few extra sets of MOC blocks and LEGO® Technic.

    MS MakeCode Arcade supports Python - in a web simulator and on gaming handhelds - but not MicroPython.

    BBC Micro:bit MicroPython: https://microbit-micropython.readthedocs.io/en/v2-docs/

    There's a MicroPythonOS, but it looks like it requires a screen (which would increase the cost per student).

    How to learn (logic, coding, and) UI development and buttons and event handlers without any hardware?

    Wokwi does circuit design and circuit simulation. TinkerCAD does circuit design and circuit emulation, also optionally with Python and Micro:bit.

    There's learning logic and coding and computer graphics and spatial reasoning with games/sims, and there's learning good storytelling; STEAM: STEM + the Arts.

    • SylvainCorlay 4 hours ago ago

      Thanks!

      The crazy thing about jupyter-games is that the entire stack entirely runs in the browser (which is not possible with pygame). Jupylet looks awesome!