Skip to content

Conversation

@Aramist
Copy link

@Aramist Aramist commented Aug 6, 2025

This PR makes changes which add to the User experience, but don't substantially change the educational content of the tutorials:

Features:

  • Adds syntax and error highlighting
  • Adds multi-line input for coding with block statements
  • Adds a command history (accessible via up/down arrow keys)
  • Adds a shift+enter shortcut for evaluating code
  • Automatically scrolls the output DOM element to show new python output / errors
  • Fixes a bug in which python standard output was not directed to the output DOM element

Caveats:

  • Still uses old version of Pynapple (numba dependency is incompatible with Pyodide)
  • Does not introduce a way to verify lesson completion or allow different lessons to have different setup scripts
  • Only tested on my machine
  • Introduces a new dependency (highlight.js min + python)

Aramist added 4 commits August 5, 2025 15:09
Adds syntax and error  highlighting
Adds command history
Adds multi-line input
Fixes a bug where standard output was not routed to the DOM
@Aramist Aramist requested a review from gviejo as a code owner August 6, 2025 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant