Show More
@@ -120,8 +120,13 | |||
|
120 | 120 | % Prevent overflowing lines due to urls and other hard-to-break entities. |
|
121 | 121 | \sloppy |
|
122 | 122 | |
|
123 | \begin{document} | |
|
124 | \section{A brief tour of the IPython notebook} | |
|
123 | ||
|
124 | ||
|
125 | ||
|
126 | \begin{document} | |
|
127 | ||
|
128 | ||
|
129 | \section{A brief tour of the IPython notebook} | |
|
125 | 130 | |
|
126 | 131 | This document will give you a brief tour of the capabilities of the |
|
127 | 132 | IPython notebook.\\You can view its contents by scrolling around, or |
@@ -151,7 +156,11 pwd | |||
|
151 | 156 | \end{codeinput} |
|
152 | 157 | \begin{codeoutput} |
|
153 | 158 | |
|
159 | ||
|
160 | \begin{verbatim} | |
|
154 | 161 | u'/Users/minrk/dev/ip/mine/docs/examples/notebooks' |
|
162 | \end{verbatim} | |
|
163 | ||
|
155 | 164 | |
|
156 | 165 | \end{codeoutput} |
|
157 | 166 | \end{codecell} |
@@ -224,7 +233,7 title('A simple chirp'); | |||
|
224 | 233 | \end{codeinput} |
|
225 | 234 | \begin{codeoutput} |
|
226 | 235 | \begin{center} |
|
227 | \includegraphics[width=0.7\textwidth]{_fig_07.png} | |
|
236 | \includegraphics[width=0.7\textwidth, height=0.9\textheight, keepaspectratio]{_fig_07.png} | |
|
228 | 237 | \par |
|
229 | 238 | \end{center} |
|
230 | 239 | \end{codeoutput} |
@@ -317,6 +326,7 for i in range(8): | |||
|
317 | 326 | |
|
318 | 327 | \begin{verbatim} |
|
319 | 328 | 0 1 2 3 4 5 6 7 |
|
329 | ||
|
320 | 330 | \end{verbatim} |
|
321 | 331 | |
|
322 | 332 | \end{codeoutput} |
@@ -369,7 +379,7 if (i=0; i<n; i++) { | |||
|
369 | 379 | Courtesy of MathJax, you can include mathematical expressions both |
|
370 | 380 | inline: $e^{i\pi} + 1 = 0$ and displayed: |
|
371 | 381 | |
|
372 |
\[ |
|
|
382 | \[^x=\sum_{i=0}^\infty \frac{1}{i!}x^i\] | |
|
373 | 383 | |
|
374 | 384 | \subsection{Rich displays: include anyting a browser can show} |
|
375 | 385 | |
@@ -388,7 +398,10 Image(filename='../../source/_static/logo.png') | |||
|
388 | 398 | \end{codeinput} |
|
389 | 399 | \begin{codeoutput} |
|
390 | 400 | |
|
391 | <IPython.core.display.Image at 0x10faeafd0> | |
|
401 | \begin{center} | |
|
402 | \includegraphics[width=0.7\textwidth, height=0.9\textheight, keepaspectratio]{_fig_22.png} | |
|
403 | \par | |
|
404 | \end{center} | |
|
392 | 405 | |
|
393 | 406 | \end{codeoutput} |
|
394 | 407 | \end{codecell} |
@@ -402,7 +415,11 Image(url='http://python.org/images/python-logo.gif') | |||
|
402 | 415 | \end{codeinput} |
|
403 | 416 | \begin{codeoutput} |
|
404 | 417 | |
|
418 | ||
|
419 | \begin{verbatim} | |
|
405 | 420 | <IPython.core.display.Image at 0x1060e7410> |
|
421 | \end{verbatim} | |
|
422 | ||
|
406 | 423 | |
|
407 | 424 | \end{codeoutput} |
|
408 | 425 | \end{codecell} |
@@ -418,7 +435,10 SVG(filename='python-logo.svg') | |||
|
418 | 435 | \end{codeinput} |
|
419 | 436 | \begin{codeoutput} |
|
420 | 437 | |
|
421 | <IPython.core.display.SVG at 0x10fb998d0> | |
|
438 | \begin{center} | |
|
439 | \includegraphics[width=0.7\textwidth]{_fig_26.pdf} | |
|
440 | \par | |
|
441 | \end{center} | |
|
422 | 442 | |
|
423 | 443 | \end{codeoutput} |
|
424 | 444 | \end{codecell} |
@@ -458,7 +478,7 Embed | |||
|
458 | 478 | \end{codeinput} |
|
459 | 479 | \begin{codeoutput} |
|
460 | 480 | |
|
461 | <IPython.core.display.Image at 0x10fb99b50> | |
|
481 | ||
|
462 | 482 | |
|
463 | 483 | \end{codeoutput} |
|
464 | 484 | \end{codecell} |
@@ -477,7 +497,11 SoftLinked | |||
|
477 | 497 | \end{codeinput} |
|
478 | 498 | \begin{codeoutput} |
|
479 | 499 | |
|
500 | ||
|
501 | \begin{verbatim} | |
|
480 | 502 | <IPython.core.display.Image at 0x10fb99b10> |
|
503 | \end{verbatim} | |
|
504 | ||
|
481 | 505 | |
|
482 | 506 | \end{codeoutput} |
|
483 | 507 | \end{codecell} |
@@ -504,7 +528,11 YouTubeVideo('1j_HxD4iLn8') | |||
|
504 | 528 | \end{codeinput} |
|
505 | 529 | \begin{codeoutput} |
|
506 | 530 | |
|
531 | ||
|
532 | \begin{verbatim} | |
|
507 | 533 | <IPython.lib.display.YouTubeVideo at 0x10fba2190> |
|
534 | \end{verbatim} | |
|
535 | ||
|
508 | 536 | |
|
509 | 537 | \end{codeoutput} |
|
510 | 538 | \end{codecell} |
@@ -531,7 +559,11 HTML(data=video_tag) | |||
|
531 | 559 | \end{codeinput} |
|
532 | 560 | \begin{codeoutput} |
|
533 | 561 | |
|
562 | ||
|
563 | \begin{verbatim} | |
|
534 | 564 | <IPython.core.display.HTML at 0x10fba28d0> |
|
565 | \end{verbatim} | |
|
566 | ||
|
535 | 567 | |
|
536 | 568 | \end{codeoutput} |
|
537 | 569 | \end{codecell} |
@@ -619,7 +651,11 FileLink('00_notebook_tour.ipynb') | |||
|
619 | 651 | \end{codeinput} |
|
620 | 652 | \begin{codeoutput} |
|
621 | 653 | |
|
654 | ||
|
655 | \begin{verbatim} | |
|
622 | 656 | <IPython.lib.display.FileLink at 0x10f7ea3d0> |
|
657 | \end{verbatim} | |
|
658 | ||
|
623 | 659 | |
|
624 | 660 | \end{codeoutput} |
|
625 | 661 | \end{codecell} |
@@ -639,7 +675,11 FileLinks('.') | |||
|
639 | 675 | \end{codeinput} |
|
640 | 676 | \begin{codeoutput} |
|
641 | 677 | |
|
678 | ||
|
679 | \begin{verbatim} | |
|
642 | 680 | <IPython.lib.display.FileLinks at 0x10f7eaad0> |
|
681 | \end{verbatim} | |
|
682 | ||
|
643 | 683 | |
|
644 | 684 | \end{codeoutput} |
|
645 | 685 | \end{codecell} |
@@ -656,7 +696,11 HTML('<iframe src=http://en.mobile.wikipedia.org/?useformat=mobile width=700 hei | |||
|
656 | 696 | \end{codeinput} |
|
657 | 697 | \begin{codeoutput} |
|
658 | 698 | |
|
699 | ||
|
700 | \begin{verbatim} | |
|
659 | 701 | <IPython.core.display.HTML at 0x1094900d0> |
|
702 | \end{verbatim} | |
|
703 | ||
|
660 | 704 | |
|
661 | 705 | \end{codeoutput} |
|
662 | 706 | \end{codecell} |
@@ -671,8 +715,8 were typing mathematical expressions in Markdown cells (along with | |||
|
671 | 715 | normal text) and letting the browser render them; now we are displaying |
|
672 | 716 | the output of a Python computation as a LaTeX expression wrapped by the |
|
673 | 717 | \texttt{Math()} object so the browser renders it. The \texttt{Math} |
|
674 |
object will add the needed LaTeX delimiters ( |
|
|
675 |
|
|
|
718 | object will add the needed LaTeX delimiters (`\$\$) if they are not | |
|
719 | provided: | |
|
676 | 720 | |
|
677 | 721 | \begin{codecell} |
|
678 | 722 | \begin{codeinput} |
@@ -683,7 +727,7 Math(r'F(k) = \int_{-\infty}^{\infty} f(x) e^{2\pi i k} dx') | |||
|
683 | 727 | \end{codeinput} |
|
684 | 728 | \begin{codeoutput} |
|
685 | 729 | |
|
686 | <IPython.core.display.Math at 0x10fba26d0> | |
|
730 | ||
|
687 | 731 | |
|
688 | 732 | \end{codeoutput} |
|
689 | 733 | \end{codecell} |
@@ -705,7 +749,7 Latex(r"""\begin{eqnarray} | |||
|
705 | 749 | \end{codeinput} |
|
706 | 750 | \begin{codeoutput} |
|
707 | 751 | |
|
708 | <IPython.core.display.Latex at 0x10fba2c10> | |
|
752 | ||
|
709 | 753 | |
|
710 | 754 | \end{codeoutput} |
|
711 | 755 | \end{codecell} |
@@ -815,10 +859,13 show() | |||
|
815 | 859 | \end{codeinput} |
|
816 | 860 | \begin{codeoutput} |
|
817 | 861 | \begin{center} |
|
818 | \includegraphics[width=0.7\textwidth]{_fig_60.png} | |
|
862 | \includegraphics[width=0.7\textwidth, height=0.9\textheight, keepaspectratio]{_fig_60.png} | |
|
819 | 863 | \par |
|
820 | 864 | \end{center} |
|
821 | 865 | \end{codeoutput} |
|
822 | 866 | \end{codecell} |
|
823 | 867 | |
|
824 | \end{document} | |
|
868 | ||
|
869 | ||
|
870 | \end{document} | |
|
871 |
General Comments 0
You need to be logged in to leave comments.
Login now