<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
Step1:  Markdown
General
Some markdown text.
A list
Step2:  Images and Figures
Step3:  Displaying a plot with its code
A matplotlib figure, with the caption set in the markdowncell above the figure.
The plotting code for a matplotlib figure (\cref{fig
Step4:  Tables (with pandas)
The plotting code for a pandas Dataframe table (\cref{tbl
Step5:  Equations (with ipython or sympy)
Step6:  The plotting code for a sympy equation (=@eqn
<ASSISTANT_TASK:>
Python Code:
print(
This is some printed text,
with a nicely formatted output.
)
Explanation: Markdown
General
Some markdown text.
A list:
something
something else
A numbered list
something
something else
non-ascii characters TODO
This is a long section of text, which we only want in a document (not a presentation)
some text
some more text
some more text
some more text
some more text
some more text
some more text
some more text
some more text
This is an abbreviated section of the document text, which we only want in a presentation
summary of document text
References and Citations
References to \cref{fig:example}, \cref{tbl:example}, =@eqn:example_sympy and \cref{code:example_mpl}.
A latex citation.\cite{zelenyak_molecular_2016}
A html citation.<cite data-cite="kirkeminde_thermodynamic_2012">(Kirkeminde, 2012)</cite> 
Todo notes
\todo[inline]{an inline todo}
Some text.\todo{a todo in the margins}
Text Output
End of explanation
Image('example.jpg',height=400)
Explanation: Images and Figures
End of explanation
plt.scatter(np.random.rand(10), np.random.rand(10), 
            label='data label')
plt.ylabel(r'a y label with latex $\alpha$')
plt.legend();
Explanation: Displaying a plot with its code
A matplotlib figure, with the caption set in the markdowncell above the figure.
The plotting code for a matplotlib figure (\cref{fig:example_mpl}).
End of explanation
df = pd.DataFrame(np.random.rand(3,4),columns=['a','b','c','d'])
df.a = ['$\delta$','x','y']
df.b = ['l','m','n']
df.set_index(['a','b'])
df.round(3)
Explanation: Tables (with pandas)
The plotting code for a pandas Dataframe table (\cref{tbl:example}).
End of explanation
Latex('$$ a = b+c $$')
Explanation: Equations (with ipython or sympy)
End of explanation
y = sym.Function('y')
n = sym.symbols(r'\alpha')
f = y(n)-2*y(n-1/sym.pi)-5*y(n-2)
sym.rsolve(f,y(n),[1,4])
Explanation: The plotting code for a sympy equation (=@eqn:example_sympy).
End of explanation
<END_TASK>