diff options
author | Christopher Burns | 2010-06-29 00:30:21 -0500 |
---|---|---|
committer | Christopher Burns | 2010-06-29 00:30:21 -0500 |
commit | f782c00fb6ec34686729cabb345e6eba744fbbad (patch) | |
tree | 3a6843dc9bf6ce072be993b14f6b144e7c26fd3a | |
parent | 28417ef50170aa5696b5903f1289431b381b5c9e (diff) | |
download | workshops-f782c00fb6ec34686729cabb345e6eba744fbbad.tar.gz workshops-f782c00fb6ec34686729cabb345e6eba744fbbad.tar.bz2 workshops-f782c00fb6ec34686729cabb345e6eba744fbbad.zip |
DOC: Add slide about __module__ attribute.
--HG--
branch : scipy2010
-rw-r--r-- | day2/session3.tex | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/day2/session3.tex b/day2/session3.tex index 463f22a..1714b71 100644 --- a/day2/session3.tex +++ b/day2/session3.tex @@ -399,6 +399,27 @@ sp.linspace(-5 * sp.pi, 5 * sp.pi, 500) \end{description} \end{frame} +\begin{frame}[fragile] + \frametitle{From which module?} + +This plot function in pylab is cool, +from where do I import it to include it in +my\_nifty\_module.py? + +\end{frame} + +\begin{frame}[fragile] + \frametitle{From which module?} + \begin{lstlisting} + +In [15]: plot.__module__ +Out[15]: 'matplotlib.pyplot' + +from matplotlib.pyplot import plot + + \end{lstlisting} +\end{frame} + \section{Objects} \begin{frame}{Everything is an Object!} \begin{itemize} |