Skip to content

Commit bf58e62

Browse files
fixed launch buttons
1 parent 3b21691 commit bf58e62

36 files changed

Lines changed: 2096 additions & 84 deletions

_config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ repository:
3030
branch: develop # Which branch of the repository should be used when creating links (optional)
3131

3232
launch_buttons:
33-
notebook_interface: "jupyterlab"
34-
binder_url: https://mybinder.org/v2/gh/ProdigiousPython/ProdigiousPython/develop
33+
notebook_interface: "jupyterlab" # The interface interactive links will activate ["classic", "jupyterlab"]
34+
binderhub_url: "https://mybinder.org"
35+
colab_url: "https://colab.research.google.com"
36+
thebe: true
3537

3638
# Add GitHub buttons to your book
3739
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository

docs/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: a1e6e8963a5254106537a035f8d252a5
3+
config: e5afe5c35b3576296400a3a6d90977bc
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/.github/ISSUE_TEMPLATE/bug_report.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,8 @@ <h2> Contents </h2>
455455
{
456456
requestKernel: true,
457457
binderOptions: {
458-
repo: "binder-examples/jupyter-stacks-datascience",
459-
ref: "master",
458+
repo: "ProdigiousPython/ProdigiousPython",
459+
ref: "develop",
460460
},
461461
codeMirrorConfig: {
462462
theme: "abcdef",

docs/.github/ISSUE_TEMPLATE/feature_request.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,8 @@ <h2> Contents </h2>
434434
{
435435
requestKernel: true,
436436
binderOptions: {
437-
repo: "binder-examples/jupyter-stacks-datascience",
438-
ref: "master",
437+
repo: "ProdigiousPython/ProdigiousPython",
438+
ref: "develop",
439439
},
440440
codeMirrorConfig: {
441441
theme: "abcdef",

docs/intro.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ <h1>Development setup<a class="headerlink" href="#development-setup" title="Perm
487487
{
488488
requestKernel: true,
489489
binderOptions: {
490-
repo: "binder-examples/jupyter-stacks-datascience",
491-
ref: "master",
490+
repo: "ProdigiousPython/ProdigiousPython",
491+
ref: "develop",
492492
},
493493
codeMirrorConfig: {
494494
theme: "abcdef",

docs/prodigiouspython/Chapter_1/10_String_representations_of_objects.html

Lines changed: 74 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,73 @@
264264

265265

266266

267+
<div class="dropdown dropdown-launch-buttons">
268+
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="Launch interactive content">
269+
<i class="fas fa-rocket"></i>
270+
</button>
271+
<ul class="dropdown-menu">
272+
273+
274+
275+
<li><a href="https://mybinder.org/v2/gh/ProdigiousPython/ProdigiousPython/develop?urlpath=lab/tree/prodigiouspython/Chapter_1/10_String_representations_of_objects.ipynb" target="_blank"
276+
class="btn btn-sm dropdown-item"
277+
title="Launch onBinder"
278+
data-bs-placement="left" data-bs-toggle="tooltip"
279+
>
280+
281+
282+
<span class="btn__icon-container">
283+
284+
<img src="../../_static/images/logo_binder.svg">
285+
</span>
286+
<span class="btn__text-container">Binder</span>
287+
</a>
288+
</li>
289+
290+
291+
292+
293+
<li><a href="https://colab.research.google.com/github/ProdigiousPython/ProdigiousPython/blob/develop/prodigiouspython/Chapter_1/10_String_representations_of_objects.ipynb" target="_blank"
294+
class="btn btn-sm dropdown-item"
295+
title="Launch onColab"
296+
data-bs-placement="left" data-bs-toggle="tooltip"
297+
>
298+
299+
300+
<span class="btn__icon-container">
301+
302+
<img src="../../_static/images/logo_colab.png">
303+
</span>
304+
<span class="btn__text-container">Colab</span>
305+
</a>
306+
</li>
307+
308+
309+
310+
311+
<li>
312+
<button onclick="initThebeSBT()"
313+
class="btn btn-sm btn-launch-thebe dropdown-item"
314+
title="Launch Thebe"
315+
data-bs-placement="left" data-bs-toggle="tooltip"
316+
>
317+
318+
319+
<span class="btn__icon-container">
320+
<i class="fas fa-play"></i>
321+
</span>
322+
<span class="btn__text-container">Live Code</span>
323+
</button>
324+
</li>
325+
326+
</ul>
327+
</div>
328+
329+
330+
331+
332+
333+
267334
<div class="dropdown dropdown-source-buttons">
268335
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="Source repositories">
269336
<i class="fab fa-github"></i>
@@ -434,8 +501,8 @@ <h1><span class="section-number">10. </span>String representations of objects: s
434501
</div>
435502
</div>
436503
<div class="cell_output docutils container">
437-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>The repr of now is: datetime.datetime(2023, 9, 4, 10, 30, 58, 976586)
438-
The str of now is: 2023-09-04 10:30:58.976586
504+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>The repr of now is: datetime.datetime(2023, 9, 4, 15, 9, 3, 655082)
505+
The str of now is: 2023-09-04 15:09:03.655082
439506
</pre></div>
440507
</div>
441508
</div>
@@ -454,8 +521,8 @@ <h1><span class="section-number">10. </span>String representations of objects: s
454521
</div>
455522
</div>
456523
<div class="cell_output docutils container">
457-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>The repr of language_obj is: &lt;__main__.ProgrammingLanguage object at 0x7f3aaac290d0&gt;
458-
The str of language_obj is: &lt;__main__.ProgrammingLanguage object at 0x7f3aaac290d0&gt;
524+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>The repr of language_obj is: &lt;__main__.ProgrammingLanguage object at 0x7f8eee7553d0&gt;
525+
The str of language_obj is: &lt;__main__.ProgrammingLanguage object at 0x7f8eee7553d0&gt;
459526
</pre></div>
460527
</div>
461528
</div>
@@ -485,7 +552,7 @@ <h1><span class="section-number">10. </span>String representations of objects: s
485552
</div>
486553
</div>
487554
<div class="cell_output docutils container">
488-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>The repr of human_obj is: Human(name=IronMan, age=48) object at 0x7f3aaac35b50
555+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>The repr of human_obj is: Human(name=IronMan, age=48) object at 0x7f8eee754250
489556
The str of human_obj is: I am IronMan of age 48
490557
</pre></div>
491558
</div>
@@ -498,8 +565,8 @@ <h1><span class="section-number">10. </span>String representations of objects: s
498565
{
499566
requestKernel: true,
500567
binderOptions: {
501-
repo: "binder-examples/jupyter-stacks-datascience",
502-
ref: "master",
568+
repo: "ProdigiousPython/ProdigiousPython",
569+
ref: "develop",
503570
},
504571
codeMirrorConfig: {
505572
theme: "abcdef",

docs/prodigiouspython/Chapter_1/11_Installing_Packages.html

Lines changed: 69 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,73 @@
264264

265265

266266

267+
<div class="dropdown dropdown-launch-buttons">
268+
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="Launch interactive content">
269+
<i class="fas fa-rocket"></i>
270+
</button>
271+
<ul class="dropdown-menu">
272+
273+
274+
275+
<li><a href="https://mybinder.org/v2/gh/ProdigiousPython/ProdigiousPython/develop?urlpath=lab/tree/prodigiouspython/Chapter_1/11_Installing_Packages.ipynb" target="_blank"
276+
class="btn btn-sm dropdown-item"
277+
title="Launch onBinder"
278+
data-bs-placement="left" data-bs-toggle="tooltip"
279+
>
280+
281+
282+
<span class="btn__icon-container">
283+
284+
<img src="../../_static/images/logo_binder.svg">
285+
</span>
286+
<span class="btn__text-container">Binder</span>
287+
</a>
288+
</li>
289+
290+
291+
292+
293+
<li><a href="https://colab.research.google.com/github/ProdigiousPython/ProdigiousPython/blob/develop/prodigiouspython/Chapter_1/11_Installing_Packages.ipynb" target="_blank"
294+
class="btn btn-sm dropdown-item"
295+
title="Launch onColab"
296+
data-bs-placement="left" data-bs-toggle="tooltip"
297+
>
298+
299+
300+
<span class="btn__icon-container">
301+
302+
<img src="../../_static/images/logo_colab.png">
303+
</span>
304+
<span class="btn__text-container">Colab</span>
305+
</a>
306+
</li>
307+
308+
309+
310+
311+
<li>
312+
<button onclick="initThebeSBT()"
313+
class="btn btn-sm btn-launch-thebe dropdown-item"
314+
title="Launch Thebe"
315+
data-bs-placement="left" data-bs-toggle="tooltip"
316+
>
317+
318+
319+
<span class="btn__icon-container">
320+
<i class="fas fa-play"></i>
321+
</span>
322+
<span class="btn__text-container">Live Code</span>
323+
</button>
324+
</li>
325+
326+
</ul>
327+
</div>
328+
329+
330+
331+
332+
333+
267334
<div class="dropdown dropdown-source-buttons">
268335
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="Source repositories">
269336
<i class="fab fa-github"></i>
@@ -460,8 +527,8 @@ <h2><span class="section-number">11.1. </span>Tidbits 🔔<a class="headerlink"
460527
{
461528
requestKernel: true,
462529
binderOptions: {
463-
repo: "binder-examples/jupyter-stacks-datascience",
464-
ref: "master",
530+
repo: "ProdigiousPython/ProdigiousPython",
531+
ref: "develop",
465532
},
466533
codeMirrorConfig: {
467534
theme: "abcdef",

docs/prodigiouspython/Chapter_1/12_Help_Utility.html

Lines changed: 69 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,73 @@
264264

265265

266266

267+
<div class="dropdown dropdown-launch-buttons">
268+
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="Launch interactive content">
269+
<i class="fas fa-rocket"></i>
270+
</button>
271+
<ul class="dropdown-menu">
272+
273+
274+
275+
<li><a href="https://mybinder.org/v2/gh/ProdigiousPython/ProdigiousPython/develop?urlpath=lab/tree/prodigiouspython/Chapter_1/12_Help_Utility.ipynb" target="_blank"
276+
class="btn btn-sm dropdown-item"
277+
title="Launch onBinder"
278+
data-bs-placement="left" data-bs-toggle="tooltip"
279+
>
280+
281+
282+
<span class="btn__icon-container">
283+
284+
<img src="../../_static/images/logo_binder.svg">
285+
</span>
286+
<span class="btn__text-container">Binder</span>
287+
</a>
288+
</li>
289+
290+
291+
292+
293+
<li><a href="https://colab.research.google.com/github/ProdigiousPython/ProdigiousPython/blob/develop/prodigiouspython/Chapter_1/12_Help_Utility.ipynb" target="_blank"
294+
class="btn btn-sm dropdown-item"
295+
title="Launch onColab"
296+
data-bs-placement="left" data-bs-toggle="tooltip"
297+
>
298+
299+
300+
<span class="btn__icon-container">
301+
302+
<img src="../../_static/images/logo_colab.png">
303+
</span>
304+
<span class="btn__text-container">Colab</span>
305+
</a>
306+
</li>
307+
308+
309+
310+
311+
<li>
312+
<button onclick="initThebeSBT()"
313+
class="btn btn-sm btn-launch-thebe dropdown-item"
314+
title="Launch Thebe"
315+
data-bs-placement="left" data-bs-toggle="tooltip"
316+
>
317+
318+
319+
<span class="btn__icon-container">
320+
<i class="fas fa-play"></i>
321+
</span>
322+
<span class="btn__text-container">Live Code</span>
323+
</button>
324+
</li>
325+
326+
</ul>
327+
</div>
328+
329+
330+
331+
332+
333+
267334
<div class="dropdown dropdown-source-buttons">
268335
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="Source repositories">
269336
<i class="fab fa-github"></i>
@@ -471,8 +538,8 @@ <h1><span class="section-number">12. </span>Help Utility<a class="headerlink" hr
471538
{
472539
requestKernel: true,
473540
binderOptions: {
474-
repo: "binder-examples/jupyter-stacks-datascience",
475-
ref: "master",
541+
repo: "ProdigiousPython/ProdigiousPython",
542+
ref: "develop",
476543
},
477544
codeMirrorConfig: {
478545
theme: "abcdef",

0 commit comments

Comments
 (0)