[yt-svn] commit/yt-doc: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Tue Jul 31 11:09:49 PDT 2012
2 new commits in yt-doc:
https://bitbucket.org/yt_analysis/yt-doc/changeset/a4fc9e5a1b8c/
changeset: a4fc9e5a1b8c
user: MatthewTurk
date: 2012-07-31 20:08:11
summary: A few notes about using the IPython notebook.
affected #: 2 files
diff -r e852b412b638afb17b22dbf2b50ce8a2960f7eef -r a4fc9e5a1b8c54fa103dcca791e9666d022f2e07 source/interacting/index.rst
--- a/source/interacting/index.rst
+++ b/source/interacting/index.rst
@@ -11,6 +11,7 @@
scripts
interactive_prompt
+ ipython_notebook
command-line
reason
mapserver
diff -r e852b412b638afb17b22dbf2b50ce8a2960f7eef -r a4fc9e5a1b8c54fa103dcca791e9666d022f2e07 source/interacting/ipython_notebook.rst
--- /dev/null
+++ b/source/interacting/ipython_notebook.rst
@@ -0,0 +1,33 @@
+IPython Notebook
+================
+
+Starting with 2.4, yt ships with several functions and helpers to display
+information in the IPython web notebook.
+
+.. note:: The IPython necessary dependencies (0MQ, Py0MQ, Tornado and IPython)
+ come with the yt install script. However, you should read in detail
+ the `IPython documentation
+ <http://ipython.org/ipython-doc/stable/interactive/htmlnotebook.html>`__
+ for how to use it.
+
+A sample notebook, demonstrating some of the functionality of both yt 2.4 and
+the IPython notebook (as exposed through yt) can be found at
+http://yt-project.org/files/yt24demo.ipynb .
+
+There are two main things that yt exposes to the IPython notebook: displaying
+PlotWindow objects and displaying Volume Renderings. Both of these are exposed
+through the ``show`` method. For instance:
+
+.. code-block:: python
+
+ slc = SlicePlot(pf, "x", "Density")
+ slc.show()
+
+Or with a volume rendering, call ``show`` on the camera:
+
+.. code-block:: python
+
+ cam = pf.h.camera([0.5, 0.5, 0.5], [0.2, 0.3, 0.4], 0.10, 1024, tf)
+ cam.show()
+
+In both of these cases, an image will appear in the cell output.
https://bitbucket.org/yt_analysis/yt-doc/changeset/51f8f9525e64/
changeset: 51f8f9525e64
user: ngoldbaum
date: 2012-07-31 20:09:49
summary: Merged in MatthewTurk/yt-doc (pull request #47)
affected #: 2 files
diff -r a0534304d7e01466bb0c4aee1b83d72669567f35 -r 51f8f9525e6447418a81467e03c2d3a7865308fd source/interacting/index.rst
--- a/source/interacting/index.rst
+++ b/source/interacting/index.rst
@@ -11,6 +11,7 @@
scripts
interactive_prompt
+ ipython_notebook
command-line
reason
mapserver
diff -r a0534304d7e01466bb0c4aee1b83d72669567f35 -r 51f8f9525e6447418a81467e03c2d3a7865308fd source/interacting/ipython_notebook.rst
--- /dev/null
+++ b/source/interacting/ipython_notebook.rst
@@ -0,0 +1,33 @@
+IPython Notebook
+================
+
+Starting with 2.4, yt ships with several functions and helpers to display
+information in the IPython web notebook.
+
+.. note:: The IPython necessary dependencies (0MQ, Py0MQ, Tornado and IPython)
+ come with the yt install script. However, you should read in detail
+ the `IPython documentation
+ <http://ipython.org/ipython-doc/stable/interactive/htmlnotebook.html>`__
+ for how to use it.
+
+A sample notebook, demonstrating some of the functionality of both yt 2.4 and
+the IPython notebook (as exposed through yt) can be found at
+http://yt-project.org/files/yt24demo.ipynb .
+
+There are two main things that yt exposes to the IPython notebook: displaying
+PlotWindow objects and displaying Volume Renderings. Both of these are exposed
+through the ``show`` method. For instance:
+
+.. code-block:: python
+
+ slc = SlicePlot(pf, "x", "Density")
+ slc.show()
+
+Or with a volume rendering, call ``show`` on the camera:
+
+.. code-block:: python
+
+ cam = pf.h.camera([0.5, 0.5, 0.5], [0.2, 0.3, 0.4], 0.10, 1024, tf)
+ cam.show()
+
+In both of these cases, an image will appear in the cell output.
Repository URL: https://bitbucket.org/yt_analysis/yt-doc/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list