-
Notifications
You must be signed in to change notification settings - Fork 15
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
Pass-through configuration directly to Thebe #17
Comments
Coming here from #19, this seems like the preferred approach; is there anything blocking it? |
Nope, just hours in the day, I am happy to review a pr 🙂 |
I can see what I can do. What's your preferred approach to backwards compatibility? A separate config variable + deprecation cycle? Moving fast and breaking things? Another option? |
Good question. Maybe we could add a key for "thebe_config_raw = True" or something, and deprecate over a cycle or two? |
TBH I'd also be fine just changing it now, as long as there wasn't a strong reason to keep the current behavior |
My preferred approach would be indeed to change the interface directly. The arguments why it wouldn't be too harmful are:
The only argument against I can see is the requirement of |
I good point, we should pin jupyter book to ~= 0..0.* first |
Description
For any configuration that exists in Thebe, we should simply pass it through directly to
thebe
rather than having our own configuration key name for it and translating it.Benefit
This way we standardize on a single set of configuration keys, and can simply refer to the
thebe
docs for the full reference.Implementation
Here is where
thebe
documents its configuration: https://thebe.readthedocs.io/en/latest/configure.html#and we translate and configure
thebe
in this package here:sphinx-thebe/sphinx_thebe/__init__.py
Lines 124 to 142 in c036ac4
Note now we are "manually" translating many things into
thebe
's configuration. Instead of this, we should just accept something likethebe_config
, which would be a dictionary that would directly map onto Thebe configuration.The text was updated successfully, but these errors were encountered: