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

Context API: support multiple contexts #118

Open
nikochiko opened this issue Mar 11, 2024 · 0 comments
Open

Context API: support multiple contexts #118

nikochiko opened this issue Mar 11, 2024 · 0 comments

Comments

@nikochiko
Copy link
Collaborator

Our global context being assumed as the only context in a program puts several limitations on the project:

  • work with parallel contexts: e.g. render both an SVG and a PNG
  • switch between contexts: this could be very helpful when working in a REPL - when you want to work on a clean slate, but also don't want to lose the context that you have so far worked on

More than this being an actual use case, I feel that the current API unnecessarily makes these things impossible, given that other than show, all other methods that use the global context are only used internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant