Repository navigation
Version Packages - #1206
Merged
Merged
Version Packages#1206
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
hyperbook@0.114.0
Minor Changes
cd80cb9Thanks @mikebarkmin! - Rework the turtle of the pyide element:import turtleis now Python's own turtle module (from Python 3.14), drawing on the canvas of the page. Turtle programs behave as they do with Python installed on a computer.This fixes several bugs of the previous implementation:
dot()(for example withgoto()andforward()) showed up while the turtle moved and then disappeared behind the dot.clear()did not work reliably: depending on the animation, it removed lines drawn after it, or text and dots drawn before it came back.onkey(),onkeypress(),onscreenclick()andontimer()were never called. Keys can now also be given with their Python names ("Up","space"), and errors inside these functions are shown in the output.circle(radius, extent=...)and other keyword arguments were ignored, andpos() == (0, 0)orabs(pos())did not work.New:
undo(),clone(),teleport(),onclick(),ondrag()andonrelease()on turtles,begin_poly()/get_poly(),setworldcoordinates(), image shapes, Tk colour names such as"SpringGreen2", and thefill()andno_animation()context managers. In browsers that can pause Python (for example Chrome and Edge), a program now runs in step with its drawing, soprint()andinput()happen at the right moment. The Stop button stops the drawing and the event functions, and a turtle program stops even when the page cannot interrupt Python.Changed to match Python:
onclick()reacts to clicks on the turtle (useonscreenclick()for clicks on the canvas), fills follow the even-odd rule, an unknown colour raises an error, and pen changes take a short animation step.2515c5cThanks @mikebarkmin! - Stop a running pyide program without reloading the page. Stop now cancels the program where it waits — in a game loop, atinput(), or while the turtle draws — so learners keep their place on the page, and pages no longer need theCross-Origin-Embedder-PolicyandCross-Origin-Opener-Policyheaders for it. The button is always labelled "Stop". Only a program that ignores the stop is ended by reloading the page; the page then scrolls back to the same IDE and shows "Execution stopped." in its output.Patch Changes
16bf390Thanks @mikebarkmin! - Show indentation guides in the pyide editor. Thin vertical lines mark where each indented block begins and ends, so learners can see whichif, loop or function a line belongs to. The guide of the block around the cursor is drawn stronger; on a line that opens a block (e.g.for i in range(3):), it is the block that line opens. The guides follow the indentation the code actually uses, so two spaces, four spaces and tabs all line up.@hyperbook/markdown@0.87.0
Minor Changes
cd80cb9Thanks @mikebarkmin! - Rework the turtle of the pyide element:import turtleis now Python's own turtle module (from Python 3.14), drawing on the canvas of the page. Turtle programs behave as they do with Python installed on a computer.This fixes several bugs of the previous implementation:
dot()(for example withgoto()andforward()) showed up while the turtle moved and then disappeared behind the dot.clear()did not work reliably: depending on the animation, it removed lines drawn after it, or text and dots drawn before it came back.onkey(),onkeypress(),onscreenclick()andontimer()were never called. Keys can now also be given with their Python names ("Up","space"), and errors inside these functions are shown in the output.circle(radius, extent=...)and other keyword arguments were ignored, andpos() == (0, 0)orabs(pos())did not work.New:
undo(),clone(),teleport(),onclick(),ondrag()andonrelease()on turtles,begin_poly()/get_poly(),setworldcoordinates(), image shapes, Tk colour names such as"SpringGreen2", and thefill()andno_animation()context managers. In browsers that can pause Python (for example Chrome and Edge), a program now runs in step with its drawing, soprint()andinput()happen at the right moment. The Stop button stops the drawing and the event functions, and a turtle program stops even when the page cannot interrupt Python.Changed to match Python:
onclick()reacts to clicks on the turtle (useonscreenclick()for clicks on the canvas), fills follow the even-odd rule, an unknown colour raises an error, and pen changes take a short animation step.2515c5cThanks @mikebarkmin! - Stop a running pyide program without reloading the page. Stop now cancels the program where it waits — in a game loop, atinput(), or while the turtle draws — so learners keep their place on the page, and pages no longer need theCross-Origin-Embedder-PolicyandCross-Origin-Opener-Policyheaders for it. The button is always labelled "Stop". Only a program that ignores the stop is ended by reloading the page; the page then scrolls back to the same IDE and shows "Execution stopped." in its output.Patch Changes
16bf390Thanks @mikebarkmin! - Show indentation guides in the pyide editor. Thin vertical lines mark where each indented block begins and ends, so learners can see whichif, loop or function a line belongs to. The guide of the block around the cursor is drawn stronger; on a line that opens a block (e.g.for i in range(3):), it is the block that line opens. The guides follow the indentation the code actually uses, so two spaces, four spaces and tabs all line up.hyperbook-studio@0.58.0
Minor Changes
cd80cb9Thanks @mikebarkmin! - Rework the turtle of the pyide element:import turtleis now Python's own turtle module (from Python 3.14), drawing on the canvas of the page. Turtle programs behave as they do with Python installed on a computer.This fixes several bugs of the previous implementation:
dot()(for example withgoto()andforward()) showed up while the turtle moved and then disappeared behind the dot.clear()did not work reliably: depending on the animation, it removed lines drawn after it, or text and dots drawn before it came back.onkey(),onkeypress(),onscreenclick()andontimer()were never called. Keys can now also be given with their Python names ("Up","space"), and errors inside these functions are shown in the output.circle(radius, extent=...)and other keyword arguments were ignored, andpos() == (0, 0)orabs(pos())did not work.New:
undo(),clone(),teleport(),onclick(),ondrag()andonrelease()on turtles,begin_poly()/get_poly(),setworldcoordinates(), image shapes, Tk colour names such as"SpringGreen2", and thefill()andno_animation()context managers. In browsers that can pause Python (for example Chrome and Edge), a program now runs in step with its drawing, soprint()andinput()happen at the right moment. The Stop button stops the drawing and the event functions, and a turtle program stops even when the page cannot interrupt Python.Changed to match Python:
onclick()reacts to clicks on the turtle (useonscreenclick()for clicks on the canvas), fills follow the even-odd rule, an unknown colour raises an error, and pen changes take a short animation step.2515c5cThanks @mikebarkmin! - Stop a running pyide program without reloading the page. Stop now cancels the program where it waits — in a game loop, atinput(), or while the turtle draws — so learners keep their place on the page, and pages no longer need theCross-Origin-Embedder-PolicyandCross-Origin-Opener-Policyheaders for it. The button is always labelled "Stop". Only a program that ignores the stop is ended by reloading the page; the page then scrolls back to the same IDE and shows "Execution stopped." in its output.Patch Changes
16bf390Thanks @mikebarkmin! - Show indentation guides in the pyide editor. Thin vertical lines mark where each indented block begins and ends, so learners can see whichif, loop or function a line belongs to. The guide of the block around the cursor is drawn stronger; on a line that opens a block (e.g.for i in range(3):), it is the block that line opens. The guides follow the indentation the code actually uses, so two spaces, four spaces and tabs all line up.Updated dependencies [
cd80cb9,16bf390,2515c5c]: