Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Dec 13, 2024
1 parent ac1ae0b commit 00ab74f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 162 deletions.
100 changes: 2 additions & 98 deletions _sources/intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
" )\n",
" self.wait()\n",
" \n",
"render_manim(One, quality=\"high\") # use 'medium' for faster rendering"
"render_manim(One)"
]
},
{
Expand Down Expand Up @@ -170,7 +170,7 @@
"from imports import *\n",
"from classes import Plot\n",
"\n",
"render_manim(Plot, graph_function=func, quality='high')"
"render_manim(Plot, graph_function=func)"
]
},
{
Expand All @@ -181,12 +181,6 @@
"You can find manim documentation with more examples [here](https://docs.manim.community/en/stable/examples.html)."
]
},
{
"cell_type": "markdown",
"id": "823ebdb5",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"id": "cd5abe06",
Expand All @@ -213,96 +207,6 @@
"# Code cell left intentionally blank"
]
},
{
"cell_type": "markdown",
"id": "e925a25d",
"metadata": {},
"source": [
"```{math}\n",
":label: my_label\n",
"w_{t+1} = (1 + r_{t+1}) s(w_t) + y_{t+1}\n",
"```"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "832b762c",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Name</th>\n",
" <th>Age</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Tom</td>\n",
" <td>20</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Nick</td>\n",
" <td>21</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>John</td>\n",
" <td>19</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Smith</td>\n",
" <td>18</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Name Age\n",
"0 Tom 20\n",
"1 Nick 21\n",
"2 John 19\n",
"3 Smith 18"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Create a simple dataframe using pandas and show it\n",
"import pandas as pd\n",
"data = {'Name': ['Tom', 'Nick', 'John', 'Smith'],\n",
" 'Age': [20, 21, 19, 18]}\n",
"\n",
"df = pd.DataFrame(data)\n",
"df"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
File renamed without changes.
File renamed without changes.
64 changes: 1 addition & 63 deletions intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ <h2>Interact with elements in visualizations<a class="headerlink" href="#interac
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">imports</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">classes</span> <span class="kn">import</span> <span class="n">Plot</span>

<span class="n">render_manim</span><span class="p">(</span><span class="n">Plot</span><span class="p">,</span> <span class="n">graph_function</span><span class="o">=</span><span class="n">func</span><span class="p">,</span> <span class="n">quality</span><span class="o">=</span><span class="s1">&#39;high&#39;</span><span class="p">)</span>
<span class="n">render_manim</span><span class="p">(</span><span class="n">Plot</span><span class="p">,</span> <span class="n">graph_function</span><span class="o">=</span><span class="n">func</span><span class="p">)</span>
</pre></div>
</div>
</div>
Expand All @@ -471,68 +471,6 @@ <h2>Extensions and much more!<a class="headerlink" href="#extensions-and-much-mo
</div>
</div>
</div>
<div class="math notranslate nohighlight" id="equation-my-label">
<span class="eqno">(1)<a class="headerlink" href="#equation-my-label" title="Link to this equation">#</a></span>\[w_{t+1} = (1 + r_{t+1}) s(w_t) + y_{t+1}\]</div>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="c1"># Create a simple dataframe using pandas and show it</span>
<span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span>
<span class="n">data</span> <span class="o">=</span> <span class="p">{</span><span class="s1">&#39;Name&#39;</span><span class="p">:</span> <span class="p">[</span><span class="s1">&#39;Tom&#39;</span><span class="p">,</span> <span class="s1">&#39;Nick&#39;</span><span class="p">,</span> <span class="s1">&#39;John&#39;</span><span class="p">,</span> <span class="s1">&#39;Smith&#39;</span><span class="p">],</span>
<span class="s1">&#39;Age&#39;</span><span class="p">:</span> <span class="p">[</span><span class="mi">20</span><span class="p">,</span> <span class="mi">21</span><span class="p">,</span> <span class="mi">19</span><span class="p">,</span> <span class="mi">18</span><span class="p">]}</span>

<span class="n">df</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">(</span><span class="n">data</span><span class="p">)</span>
<span class="n">df</span>
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_html"><div>
<style scoped>
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}

.dataframe tbody tr th {
vertical-align: top;
}

.dataframe thead th {
text-align: right;
}
</style>
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>Name</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr>
<th>0</th>
<td>Tom</td>
<td>20</td>
</tr>
<tr>
<th>1</th>
<td>Nick</td>
<td>21</td>
</tr>
<tr>
<th>2</th>
<td>John</td>
<td>19</td>
</tr>
<tr>
<th>3</th>
<td>Smith</td>
<td>18</td>
</tr>
</tbody>
</table>
</div></div></div>
</div>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="c1"># code cell left intentionally blank</span>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 00ab74f

Please sign in to comment.