-
Notifications
You must be signed in to change notification settings - Fork 28
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
JNB:BUG:ENH: Fix Suite2p example, and update Binder environment for Python 3.9 #220
Conversation
Codecov Report
@@ Coverage Diff @@
## master #220 +/- ##
=======================================
Coverage 93.05% 93.05%
=======================================
Files 8 8
Lines 922 922
Branches 196 196
=======================================
Hits 858 858
Misses 33 33
Partials 31 31
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
On Binder there are currently two bugs. Matplotlib is missing, which of course breaks Holoviews. Suite2p does not import and throws the following error (from pyqt5): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some commits (4de477d and 9d5e34b) are undoing formatting style fixes I made to the suite2p and SIMA notebooks. I would appreciate if these commits were dropped from the PR. I expect this has come from checking out the new branch, using your notebooks that were forked from the previous (old) copies of these notebooks, overwriting the notebooks, and then committing everything in the notebook without checking what it is that you're committing. If you're actually including these changes on purpose, please let me know.
examples/SIMA example.ipynb
Outdated
@@ -40,7 +43,7 @@ | |||
"import holoviews as hv\n", | |||
"\n", | |||
"%load_ext holoviews.ipython\n", | |||
"%output widgets=\"embed\"" | |||
"%output widgets='embed'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unwanted side-effect.
examples/SIMA example.ipynb
Outdated
" i_cell: hv.Curve(exp.raw[i_cell][i_trial][0, :], label=\"SIMA\")\n", | ||
" * hv.Curve(exp.result[i_cell][i_trial][0, :], label=\"FISSA\")\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unwanted side-effect.
examples/Suite2p example.ipynb
Outdated
" i_cell: hv.Curve(exp.raw[i_cell][i_trial][0, :], label=\"suite2p\")\n", | ||
" * hv.Curve(exp.result[i_cell][i_trial][0, :], label=\"FISSA\")\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unwanted side-effect.
examples/SIMA example.ipynb
Outdated
"avg_img * hv.HoloMap(region_plots, kdims=[\"Cell\"]) * fig + hv.HoloMap(\n", | ||
" traces_plots, kdims=[\"Cell\"]\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unwanted side-effect.
examples/Suite2p example.ipynb
Outdated
"avg_img * cell_locs * hv.HoloMap(region_plots, kdims=[\"Cell\"]) + hv.HoloMap(\n", | ||
" traces_plots, kdims=[\"Cell\"]\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unwanted side-effect.
- scipy==1.7.0 | ||
- pip=21.1.2 | ||
- six==1.16.0 | ||
- holoviews==1.13.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe current issues with holoviews on Binder come from it being conda installed instead of pip installed somehow?
- python=3.9.5 | ||
- numpy==1.21.0 | ||
- scipy==1.7.0 | ||
- pip=21.1.2 | ||
- six==1.16.0 | ||
- holoviews==1.13.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alphabetise
- python=3.9.5 | |
- numpy==1.21.0 | |
- scipy==1.7.0 | |
- pip=21.1.2 | |
- six==1.16.0 | |
- holoviews==1.13.2 | |
- holoviews==1.13.2 | |
- numpy==1.21.0 | |
- pip=21.1.2 | |
- python=3.9.5 | |
- scipy==1.7.0 | |
- six==1.16.0 |
Maybe it would be better if we move the Suite2p example and its binder to a separate repo? Then the binder would boot up quickly for the non-Suite2p examples and be more stable. What do you think? |
Not a terrible idea, although I don't like the repository bloat that comes with that, but given that Suite2p is so widely used it could be ok. We could also sway we only use Binder for our core notebooks and not the external packages (like suite2p and Sima). If we do a separate repository for Suite2p: that would just be an empty repository with only the notebook for suite2p and the binder stuff? Would you be ok to set up the repository with Binder support, and I'll add and debug the suite2p stuff? |
Co-authored-by: Scott Lowe <[email protected]>
Co-authored-by: Scott Lowe <[email protected]>
5c537bc
to
7ae8584
Compare
Just to confirm that #227 has fixed the multiprocessing bugs with suite2p and fissa together. So the changes to the notebook for multiprocessing are no longer needed. |
Great to hear! In that case, commit b852708 can be dropped from the PR. If #228 is merged in, that might fix the issues with the matplotlib backend to holoviews (by not using holoviews any more and just matplotlib directly). |
Let's drop suite2p from this binder and stay with Python 3.6 to support SIMA. Then we can make a new repository named |
Closing this PR since most of it is no longer relevant. |
With this PR (which replaces an earlier PR which I accidentally botched a bit) I: