Put any needed imports needed to display rich output the following cell:
In [66]:
%matplotlib inline
import numpy as np
from matplotlib import pyplot as plt
In [67]:
from IPython.html.widgets import interact, interactive, fixed
from IPython.display import display
from IPython.html import widgets
from IPython.display import Image
In [68]:
assert True # leave this to grade the import statements
Find a Physics related image on the internet and display it in this notebook using the Image object.
url argument to Image (don't upload the image to this server).embed flag so the image is embedded in the notebook data.600px.
In [75]:
Image(url='http://talklikeaphysicist.com/wp-content/uploads/2008/05/tesla-coil.jpg',embed=True, width=600, height=600)
Out[75]:
In [ ]:
assert True # leave this to grade the image display
Use the HTML object to display HTML in the notebook that reproduces the table of Quarks on this page. This will require you to learn about how to create HTML tables and then pass that to the HTML object for display. Don't worry about styling and formatting the table, but you should use LaTeX where appropriate.
In [76]:
%%html
<table>
<tr>Quarks
<th>Name</th>
<th>Symbol</th>
<th>Antiparticle</th>
<th>Charge ($e$)</th>
<th>Mass($MeV/c^2$)
</tr>
<tr>
<td>up</td>
<td>$u$</td>
<td>$\bar{u}$</td>
<td>$+\frac{2}{3}$</td>
<td>1.5-3.3</td>
</tr>
<tr>
<td>down</td>
<td>$d$</td>
<td>$\bar{d}$</td>
<td>$-\frac{1}{3}$</td>
<td>3.5-6.0</td>
</tr>
<tr>
<td>charm</td>
<td>$c$</td>
<td>$\bar{c}$</td>
<td>$+\frac{2}{3}$</td>
<td>1,160-1,340</td>
</tr>
<tr>
<td>strange</td>
<td>$s$</td>
<td>$\bar{s}$</td>
<td>$-\frac{1}{3}$</td>
<td>70-130</td>
</tr>
<tr>
<td>top</td>
<td>$t$</td>
<td>$\bar{t}$</td>
<td>$+\frac{2}{3}$</td>
<td>169,100-173,300</td>
</tr>
<tr>
<td>bottom</td>
<td>$b$</td>
<td>$\bar{b}$</td>
<td>$-\frac{1}{3}$</td>
<td>4,130-4,370</td>
</tr>
</table>
In [ ]:
assert True # leave this here to grade the quark table
In [ ]: