We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5dd948 commit da82502Copy full SHA for da82502
src/sage_docbuild/conf.py
@@ -56,13 +56,16 @@
56
jupyter_execute_default_kernel = 'sagemath'
57
58
if os.environ.get('SAGE_LIVE_DOC', 'no') == 'yes':
59
-
60
SAGE_JUPYTER_SERVER = os.environ.get('SAGE_JUPYTER_SERVER', 'binder')
61
- if SAGE_JUPYTER_SERVER == 'binder':
+ if SAGE_JUPYTER_SERVER.startswith('binder'):
+ if SAGE_JUPYTER_SERVER == 'binder': # default binder repo
62
+ binder_repo = "sagemath/sage-binder-env"
63
+ else: # format "binder:sagemath/sage-binder-env"
64
+ binder_repo = SAGE_JUPYTER_SERVER[7:]
65
jupyter_sphinx_thebelab_config = {
66
'requestKernel': False,
67
'binderOptions': {
- 'repo': "sagemath/sage-binder-env",
68
+ 'repo': binder_repo,
69
},
70
'kernelOptions': {
71
'name': "sagemath",
0 commit comments