8000 2025 2 4 by ntoll · Pull Request #173 · pyscript/docs · GitHub
[go: up one dir, main page]

Skip to content

2025 2 4 #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add section on py-editor stop button.
  • Loading branch information
ntoll committed Feb 27, 2025
commit 95523a9a828fdbd94246e0508196418e98f17d11
Binary file added docs/assets/images/pyeditor-stop.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions docs/user-guide/editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,21 @@ The outcome of these code fragments should look something like this:

Hovering over the Python editor reveals the "run" button.

### Stop evaluation

Sometimes, for whatever reason, the fragment of code in the editor will never
complete. Perhaps it's stuck in an infinite loop and you need to stop the
evaluation of your code so you can fix the problem and start it again.

When the code is running, hovering over the editor will reveal a stop button
(where the run button was found). Click on it, confirm you want to stop your
code, and then the code will stop and the editor will refresh so you can fix
your code.

It looks something like this:

<img src="../../assets/images/pyeditor-stop.gif" style="border: 1px solid black; border-radius: 0.2rem; box-shadow: var(--md-shadow-z1);"/>

### Setup

Sometimes you need to create a pre-baked Pythonic context for a shared
Expand Down
0