{article iPython Example}{title} {text} {/article}
ipython notebook --pylab inline
Display inline Matplotlib plots with the inline directive, using the following command:
{source}
<!-- You can place html anywhere within the source tags -->
<pre class="brush:py;">
PS C:\Users\Tom> ipython notebook --pylab inline
2014-10-28 14:40:29.267 [NotebookApp] Using existing profile dir: 'C:\\emacs\\.ipython\\profile_default'
2014-10-28 14:40:29.269 [NotebookApp] WARNING | Starting all kernels in pylab mode is not recommended,
and will be disabled in a future release.
Please use the %matplotlib magic to enable matplotlib instead.
pylab implies many imports, which can have confusing side effects
and harm the reproducibility of your notebooks.
2014-10-28 14:40:29.309 [NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js
2014-10-28 14:40:29.406 [NotebookApp] Serving notebooks from local directory: C:\Users\Tom
2014-10-28 14:40:29.406 [NotebookApp] 0 active kernels
2014-10-28 14:40:29.406 [NotebookApp] The IPython Notebook is running at: http://localhost:8888/
2014-10-28 14:40:29.407 [NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirm
ation).
</pre>
<script language="javascript" type="text/javascript">
// You can place JavaScript like this
</script>
<?php
// You can place PHP like this
?>
{/source}
1. Create a notebook: Click on the New Notebook button to create a new notebook:
2. Create an array: Create an array with the arange function. Type the command in the following screenshot, and press Enter:
a = arange(7)
3. Next, enter the following command and press Enter
a