-
Notifications
You must be signed in to change notification settings - Fork 22
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
Defining event schema with well-known paths? #75
Comments
I really like the idea of the schema at rest proposal and operators will too - thanks @bollwyvl. I almost like it so much that I wonder if it should be the only way schemas are registered - so there's only one mechanism. The horse may have left the barn on that one, but it might be worth discussing. This way, there's a single location to see which events are "in play" and where others can vet what kind of data is produced, build consumer scripts for handling the output, etc. |
Well, this is Jupyter, and dynamic is always useful, if only for a small subset of customized tasks.
Well, this is Jupyter, so it will never be a single location. 🤣 Let's get some
Yep, though I'd reckon But, of course: I don't think events should be the only thing extensible with schema, so eventually something like...
|
Thanks Nick. I'm having trouble deciphering if this (or a portion thereof) is sarcasm or not. If not, it sounds like a "more the merrier" is what you're after. Using entry_points occurred to me as well, but you started this issue off implying that non-"python-side" approaches were needed. I prefer to limit support matrix sizing and would argue that fewer is better (provided all needs are satisfied). A kernelspec-like CLI makes sense to gather schemas. |
See also jupyter/enhancement-proposals#107 |
I've taken a look at the code and the docs here and upstream in Server, and only see reference to the python-side event registration.
For cases like a labextension, is it possible to register an event by putting a declarative file in a place at packaging time?
I could imagine two approaches:
event-schema-at-rest
event-schema-in-traitlets
My preference, I guess, would be to the former, as nesting schema inside anything is kinda nightmarish, but there is a certain simplicity in keeping everything in
traitlets
, for good or bad.The text was updated successfully, but these errors were encountered: