-
Notifications
You must be signed in to change notification settings - Fork 35
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
Caption for WAV display #100
Comments
@rmsrosa This looks like a nice addition. Could you help me understand why you cannot extend the existing |
Yeah, I guess it doesn't break it. It adds a field, but it should be fine with the constructor that only takes the first two fields. Should I make a PR? |
Yes, please! A PR would be very much appreciated. |
Hi,
For my notebooks, I added a composite type similar to
WAVArray
which adds a "caption" field, which is then used inshow
to display a caption in an html figure element wrapping the html audio controls.Ideally, it should replace the existing
WAVArray
, but that could be a breaking change, so I made it into a new structCWAVArray
, also for the lack of a better name.It doesn't look well in the same cell as
WAVArray
, due to the identation, but one can useCWAVArray
with the empty string if no caption is desired.If you like the idea, I could make a PR with the above. Let me know.
This is essentially it:
And here is how it displays in a jupyter notebook, including the case with an empty caption:
The text was updated successfully, but these errors were encountered: