Headings (#)
Lists (*)
Blockquote
This is an example.
Horizontal Rule (---)
--> this text is inline code
def my_function():
"""My syntax is highlighted for the Python language."""
pass
[name](https://some_website.com)
[name](#the_last_cell)
Example
In [35]:
some_global_variable = 6
def my_function(arg):
"""This is a docstring."""
some_global_variable = 1
return some_global_variable
In [36]:
print(my_function(5))
In [37]:
some_global_variable
Out[37]:
In [4]:
%time some_list = [x**x for x in range(9001)]
In [12]:
!sudo python3.6 -m pip install matplotlib
In [39]:
%matplotlib notebook
import matplotlib, numpy, pandas, seaborn
from matplotlib import pyplot as plt
ts = pd.Series(numpy.random.randn(1000), index=pandas.date_range('1/1/2000', periods=1000))
ts = ts.cumsum()
df = pandas.DataFrame(numpy.random.randn(1000, 4), index=ts.index,
columns=['A', 'B', 'C', 'D'])
df = df.cumsum()
df.plot(); plt.legend(loc='best')
Out[39]:
In [7]:
!dir
In [16]:
from IPython.core.display import display, HTML
display(HTML("<style>.container { width:100% !important; }</style>"))
In [17]:
from IPython.core.display import HTML
css = open('style-table.css').read() + open('style-notebook.css').read()
HTML('<style>{}</style>'.format(css))
In [18]:
from IPython.display import YouTubeVideo
YouTubeVideo('HW29067qVWk')
Out[18]:
In [19]:
!ipython profile locate
In [5]:
# Otherwise run: !ipython profile create
# Sample output:
# [ProfileCreate] Generating default config file: 'C:\\Users\\randall.white\\.ipython\\profile_default\\ipython_config.py'
# [ProfileCreate] Generating default config file: 'C:\\Users\\randall.white\\.ipython\\profile_default\\ipython_kernel_config.py'
In [ ]:
In [20]:
import time
In [22]:
for i in range(5):
time.sleep(.5)
print(i)
In [23]:
time.sleep(10)
print("I'm waiting to see this...")
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]: