Closed StuartLittlefair closed 6 years ago
Thanks for the report.
TL;DR: installing ipywidgets 4.x will fix it for now. Likely to jump directly from ipywidgets 4 to 6 interms of supported versions.
TL: The layout mechanism changed completely in ipywidgets 5. I started working on an upgrade to 5 over the summer, but hit an issue with the accordion widget (used in the image browser) that made it non-functional. That has since been fixed in ipywidgets master but (I think) won't be backported to 5.x. I just saw that ipywidgets 6.0.0b1 was released today and am checking on a release date for 6.0.0. Assuming it is no more than a month off, I'll target a reducer release for around that time that supports 6.
Not quite sure how I'll handle trying to support both 4.x and 6.x, though....may just declare 6.x to be the only supported version.
Thanks for the prompt reply @mwcraig.
I think there may be an incompatibility between the V4.2.x of the Jupyter notebook and ipywidgets-4.x, since I get the following error with that combination
When I try to run the 5 cell in the demo notebook I got
[IPKernelApp] ERROR | No such comm target registered: jupyter.widget.version
which others have also reported, e.g here. I would downgrade my notebook version but I'm delivering a course on Sage Math Cloud so am stuck with 4.2.x. I'll keep an eye open for ipywidgets v6 support...
Odd; I'm running notebook 4.2.2 and not getting that error.
In any event, how soon do you need an update? Sounds like it will be more than a month until 6.0 is out. I can carve out some time in the next couple weeks to work on getting out a beta release that is at least mostly compatible with ipywidgets 5 (and fully compatible with 6).
That is bizarre. I'll try and understand the source of my error more.
Don't rush for an update. I'm teaching a class using reducer in three weeks but if I can't resolve the above error by then, I have a non-widget based version where I have stripped out the Combiner
and Reducer
logic that will work for the class.
@StuartLittlefair -- I'm close to having a release that works with ipywidgets 5. Currently inclined to try a beta release in the next one-three days that you could try out. I'd release it as a beta so that you could pip install but probably won't do a formal release for ipywidgets 5 because the accordions for the file browser have some defects that are not fixable on the python side.
@StuartLittlefair -- can you please try out v0.3.4.b2 (now on pypi) and let me know how it goes? There are definitely still some rough edges in the styling, but it should be usable...
Thanks @mwcraig - this works perfectly! I really appreciate the effort...
No problem. Please let me know if you run into an wrinkles when running it. I'd be very curious to here how the class goes.
FYI, there is a set of (very incomplete) notebooks at https://github.com/mwcraig/obs-astronomy-binder that walk through some observing basics with astropy. Feel free to use as you like.
@StuartLittlefair -- fyi, later this week I'll be releasing a version of reducer compatible with ipywidgets>=7. There won't actually be a release compatible with ipywidgets 5 or 6, but compatibility with 7 is almost ready.
@StuartLittlefair -- I'm closing this now that I've released v 0.4.0, which works with ipywidgets >=7, but please do let me know if you run into issues with it.
With reducer v0.3.2, jupyter notebook 4.2.3 and ipywidgets 5.2.2 the widgets are unusable and layout is scrambled.
The screenshot below shows the layout of the combiner gui, the reduction gui is similar.
In addition, any attempt to click a button in the above layout causes the following error