You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to give a config such as the following for a local server run as jupyter notebook --NotebookApp.token=test-secret --NotebookApp.allow_origin='http://localhost:8888'
# Launch button settings
launch_buttons:
# ...
thebe_server_url : "" # Use a specified server URL (must be started with appropriate --NotebookApp.allow_origin setting)
thebe_server_token : "" # thebe_local_url server must be started with a corresponding --NotebookApp.token value.
In a default setup, as per above, these would then be set as per:
It would possibly be neater to have a Jupyter Book setting thebe: binderhub | server | none rather than true false and then thebe_server_url would work equally for BinderHub. But that could break backwards compatible config files.
Currently, thebe is hardwired to connect to a kernel launched from a BinderHub server using the following templated config as per
sphinx-thebe/sphinx_thebe/__init__.py
Line 94 in 44ae793
It would be useful to be able to specify a local connection to an already running server rather than a BinderHub connection, eg as per jupyter-book/jupyter-book#199 and jupyter-book/jupyter-book#1206.
This would require a template of the form (untested - {} may be messed up...):
to give a config such as the following for a local server run as
jupyter notebook --NotebookApp.token=test-secret --NotebookApp.allow_origin='http://localhost:8888'
As for settings in Jupyter book, maybe add something like the following to
jupyter_book/config_schema.json
:with default set via
jupyter_book/default_config.yml
as per something like:In a default setup, as per above, these would then be set as per:
Some logic would then be required to determine which thebe template to use based on relative settings of
binderhub_url
andthebe_local_url
.The Launching from MyBinder message in
sphinx_thebe/_static/sphinx-thebe.js
would also need updating as appropriate.It would possibly be neater to have a Jupyter Book setting
thebe: binderhub | server | none
rather than true false and thenthebe_server_url
would work equally for BinderHub. But that could break backwards compatible config files.I've started trying to explore this route by mnaully editing Jupyter Book HTML pages in the context of a jupyter-server-proxied Jupyter Book. Notes here: https://github.com/ouseful-testing/jupyter-book-server-proxy
The text was updated successfully, but these errors were encountered: