fix: plotting in colab#317
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #317 +/- ##
==========================================
+ Coverage 60.24% 65.81% +5.57%
==========================================
Files 113 140 +27
Lines 4017 6196 +2179
==========================================
+ Hits 2420 4078 +1658
- Misses 1597 2118 +521 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Nice catch in the related issue. Is this PR still a WIP? It doesn't seem to fix the issue on my end |
* origin/main: Update README.md getting started link
|
to test this, you'll have to point it to the right senselab install in the notebook. by default it points to pypi senselab. |
thank you. I tested it both locally and on G Colab and still don't see the plots when I try to run your minimal demo in the issue, which makes me think that the problem is not entirely solved yet. If we speak about the 00_getting_started.ipynb tutorial, I see the plots already with the solution in the main branch |
|
the minimal demo will not work because the solution requires redoing
matplotlib inline/ipympl after senselab is imported. If you do that in the
minimal demo the plots will work. See the corresponding update in the PR
notebook.
…On Mon, Apr 21, 2025, 1:15 PM Fabio Catania ***@***.***> wrote:
to test this, you'll have to point it to the right senselab install in the
notebook. by default it points to pypi senselab.
! pip install 'senselab[audio] @ ***@***.***/pull/317/head'
thank you. I tested it both locally and on G Colab and still don't see the
plots when I try to run your minimal demo in the issue, which makes me
think that the problem is not entirely solved yet. If we speak about the
00_getting_started.ipynb tutorial, I see the plots already with the
solution in the main branch
—
Reply to this email directly, view it on GitHub
<#317 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABM57Y2USAOXDTL6AQO55L22URUVAVCNFSM6AAAAAB3PWBLUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMJZGA2TCMZTGI>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
*fabiocat93* left a comment (sensein/senselab#317)
<#317 (comment)>
to test this, you'll have to point it to the right senselab install in the
notebook. by default it points to pypi senselab.
! pip install 'senselab[audio] @ ***@***.***/pull/317/head'
thank you. I tested it both locally and on G Colab and still don't see the
plots when I try to run your minimal demo in the issue, which makes me
think that the problem is not entirely solved yet. If we speak about the
00_getting_started.ipynb tutorial, I see the plots already with the
solution in the main branch
—
Reply to this email directly, view it on GitHub
<#317 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABM57Y2USAOXDTL6AQO55L22URUVAVCNFSM6AAAAAB3PWBLUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMJZGA2TCMZTGI>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
|
|
CI not passing may be caused by a CI configuration issue--see here: #321 |
|
@ibevers - i think it's always useful to add tests. so please take this over. |
Co-authored-by: Satrajit Ghosh <satrajit.ghosh@gmail.com>
|
@fabiocat93 mergable? |
@satra @ibevers these aspects haven't been solved in this PR and I opened an issue for those: #361 |
|
@fabiocat93 - that seems separate from this issue and perhaps should be handled in a separate PR. if this is ready, feel free to merge this. |
yes, indeed that's what I am saying (which is why I created a separate issue). Coming back to the matter of this PR, unfortunately,
This doens't work: from senselab.audio.tasks.plotting.plotting import plot_waveform
plot_waveform(audio1);This is a workaround to make see the plot: from senselab.audio.tasks.plotting.plotting import plot_waveform
%matplotlib inline
plot_waveform(audio1); |
|
did you see this comment: #317 (comment) |
|
the changes in this PR are unrelated to the original issue except for part of the notebook change which implements that comment. |
|
it has to be done after the first time senselab is imported, hence the change in the notebook. |
which wasn't the case outside of G Colab. Fixed it, also in the rest of the relevant notebooks in the |



Description
The colab notebook wasn't behaving as expected. This updates some of the plotting routines and updates the notebook for both plotting fix and an import error.
Related Issue(s)
closes #315
Motivation and Context
would be nice to see waves and spectrograms on colab.
How Has This Been Tested?
Manually on colab
Types of changes
Checklist: