#!/usr/bin/env python # coding: utf-8 # # Test Notebook for Notebook Profiler # # This notebook provides a test case for the notebook profiler. # # It includes a range of markdown and code cells intended to test various features of the profiler. # # Note that this notebook does not necessarily run... # ## Markdown Cells With Code Blocks # # This cell, for example, contains a single code block: # # ```python # import pandas # # #Create a dataframe # df = pd.DataFrame() # ``` # This cell contains two code blocks. # # Here's one: # # ```python # import pandas # # #Create a dataframe # df = pd.DataFrame() # ``` # # and here's another: # # ```python # import pandas # # #Create a dataframe # df = pd.DataFrame() # ``` # # So that's two... # In[ ]: # This is a code cell import pandas #Create a dataframe df = pd.DataFrame() # In[ ]: # This is a code cell with a magic... get_ipython().run_line_magic('matplotlib', 'inline') import time def fn(): """How is the docstring handled?""" pass # In[1]: get_ipython().run_line_magic('load_ext', 'sql') # In[ ]: get_ipython().run_cell_magic('sql', '', 'SELECT * FROM TABLE;\n-- comment just anyway...\n') # In[ ]: #Here's a cell with a shell command get_ipython().system('ls')