Skip to content
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

API design for choosing between multiple backends #122

Closed
pllim opened this issue Feb 10, 2021 · 1 comment
Closed

API design for choosing between multiple backends #122

pllim opened this issue Feb 10, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@pllim
Copy link
Member

pllim commented Feb 10, 2021

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

@pllim
Copy link
Member Author

pllim commented Jun 16, 2023

With #162 , backend implementation would be completely separate and eventually they won't even be in this repo.

@pllim pllim closed this as not planned Won't fix, can't repro, duplicate, stale Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant