Skip to content

API design for choosing between multiple backends #122

Closed as not planned
Closed as not planned
@pllim

Description

@pllim

Let's say in the future, we have astrowidgets API implemented with different visualization tools (backends); e.g., Ginga, glue-jupyter, PyWWT, etc. How do we enable switching backends?

  • Do we do this at import time and then have it fixed for a session? Example: from astrowidgets.ginga import ImageWidget
  • Do we allow user to switch inside an active session? Example: import astrowidgets; astrowidgets.set_backend('ginga'); from astrowidgets import ImageWidgets
  • Something else I haven't thought of?

Also see: #93

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions