I know this is currently at hack-level so all is forgiven, but at some point if this design has legs we want to keep the top-level API (import astrowidgets limited to the API specific to here. That is, right now some ginga stuff (AstroImage, most notably) is in the top-level, which I think would confuse users.
Similarly (but more controversially): perhaps the core widget shouldn't be a subclass of a widget at all, but rather contain the widget? (but override _repr_html_ and so on to behave correctly). That way the tab-completion method of learning a tool isn't overwhelmed by all the widet details.
Not urgent, but just putting it here to keep track/discuss.
I know this is currently at hack-level so all is forgiven, but at some point if this design has legs we want to keep the top-level API (
import astrowidgetslimited to the API specific to here. That is, right now some ginga stuff (AstroImage, most notably) is in the top-level, which I think would confuse users.Similarly (but more controversially): perhaps the core widget shouldn't be a subclass of a widget at all, but rather contain the widget? (but override
_repr_html_and so on to behave correctly). That way the tab-completion method of learning a tool isn't overwhelmed by all the widet details.Not urgent, but just putting it here to keep track/discuss.