Skip to content

Update abcjs version for Tune display and add additional abcjs-based tools#89

Merged
zmoon merged 66 commits into
mainfrom
anywidget
Jan 17, 2026
Merged

Update abcjs version for Tune display and add additional abcjs-based tools#89
zmoon merged 66 commits into
mainfrom
anywidget

Conversation

@zmoon

@zmoon zmoon commented Jan 16, 2026

Copy link
Copy Markdown
Owner

Now using anywidget for the display (_repr_html_)

More ways to use abcjs:

  • headless SVG creation via Node.js (pyabc2.sheet, not sure about the module name)
  • create/open HTML page
  • interactive toy editor widget in the notebook using ipywidgets
    • planning to keep this as an example (in the notebook) but create an editor widget in js, so that the interactivity fully works in the docs

todo:

  • document the widget attrs
  • cov

zmoon added 30 commits November 29, 2024 10:25
- seems like abcjs is not ES6 so can't `import`
- loading from CDN happens on widget creation, but not update
- but currently creation controls where it shows up
  (the first #music, though update creates additional elements)
without needing to override __init__
seems like restarting notebook kernel won't get you to the first
load, have to refresh the web page

and it would be nice to display it at the same hierarchy level
as the widget container, instead of within it

could also add an option to include it within the widget when
requested
tune.engraver.svgs also them, but not sure if the same thing or not
zmoon and others added 2 commits January 15, 2026 22:18
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@zmoon zmoon changed the title Update abcjs version for Tune display and add additional tools Update abcjs version for Tune display and add additional abcjs-based tools Jan 16, 2026
@zmoon
zmoon marked this pull request as ready for review January 17, 2026 05:24
@zmoon
zmoon requested a review from Copilot January 17, 2026 05:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 22 out of 23 changed files in this pull request and generated 11 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/test_html.py Outdated
Comment thread tests/test_html.py
Comment thread pyabc2/sheet/cli.cjs
Comment thread pyabc2/sheet/render.js Outdated
Comment thread pyabc2/html.py
Comment thread pyabc2/html.py Outdated
Comment thread pyabc2/widget/__init__.py
Comment thread pyabc2/sheet/__init__.py
Comment thread pyabc2/widget/__init__.py Outdated
Comment thread tests/test_abcjs_nodejs.py
@zmoon

zmoon commented Jan 17, 2026

Copy link
Copy Markdown
Owner Author

I don't know why codecov is reporting Eskin coverage so low. Those tests are running. Just going to merge for now.

@zmoon
zmoon merged commit 7e1f2f0 into main Jan 17, 2026
8 of 9 checks passed
@zmoon
zmoon deleted the anywidget branch January 17, 2026 05:54
@zmoon zmoon mentioned this pull request Apr 17, 2026
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.

2 participants