akshayka commited on
Commit
2a1cd49
·
verified ·
1 Parent(s): 1c498ab

Update notebook.py

Browse files
Files changed (1) hide show
  1. notebook.py +22 -19
notebook.py CHANGED
@@ -33,30 +33,16 @@ def _(mo):
33
  return
34
 
35
 
36
- @app.cell(hide_code=True)
37
- def _(mo):
38
- mo.md(
39
- r"""
40
- ## The 3Blue1Brown video
41
-
42
- If you haven't seen it, definitely check out the video that inspired this notebook!
43
- """
44
- )
45
- return
46
-
47
-
48
- @app.cell(hide_code=True)
49
- def _(mo):
50
- mo.Html('<iframe width="700" height="400" src="https://www.youtube.com/embed/6dTyOl1fmDo?si=xl9v6Y8x2e3r3A9I" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')
51
- return
52
-
53
-
54
  @app.cell(hide_code=True)
55
  def _(mo):
56
  slider = mo.ui.slider(start=0, stop=3, value=1, show_value=True)
57
  return (slider,)
58
 
59
-
 
 
 
 
60
  @app.cell(hide_code=True)
61
  def _(mo, slider):
62
  mo.md(f"Use this slider to control the weight of the heavier block: {slider}")
@@ -95,7 +81,24 @@ def _(ani, mo, run_button):
95
  video
96
  return (video,)
97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
 
 
99
  @app.cell
100
  def _():
101
  import numpy as np
 
33
  return
34
 
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  @app.cell(hide_code=True)
37
  def _(mo):
38
  slider = mo.ui.slider(start=0, stop=3, value=1, show_value=True)
39
  return (slider,)
40
 
41
+ @app.cell(hide_code=True)
42
+ def _(mo, slider):
43
+ mo.md("## Simulate!")
44
+ return
45
+
46
  @app.cell(hide_code=True)
47
  def _(mo, slider):
48
  mo.md(f"Use this slider to control the weight of the heavier block: {slider}")
 
81
  video
82
  return (video,)
83
 
84
+ @app.cell(hide_code=True)
85
+ def _(mo):
86
+ mo.md(
87
+ r"""
88
+ ## The 3Blue1Brown video
89
+
90
+ If you haven't seen it, definitely check out the video that inspired this notebook!
91
+ """
92
+ )
93
+ return
94
+
95
+
96
+ @app.cell(hide_code=True)
97
+ def _(mo):
98
+ mo.Html('<iframe width="700" height="400" src="https://www.youtube.com/embed/6dTyOl1fmDo?si=xl9v6Y8x2e3r3A9I" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')
99
+ return
100
 
101
+
102
  @app.cell
103
  def _():
104
  import numpy as np