Skip to content

03. Using PyZDDE in Jupyter: A Gallery of notebooks

Indranil Sinharoy edited this page Dec 26, 2015 · 8 revisions

Using PyZDDE within Jupyter Notebook

The [Jupyter (previously IPython) notebook] (http://ipython.readthedocs.org/en/stable/) is a great tool for numerical computing, exploratory analysis, documenting thoughts and research processes, knowledge sharing and teaching.

This page showcases some examples of using PyZDDE with Zemax within the notebook environment (more to be added over time).

Basic, general examples

  1. [Using ZEMAX and PyZDDE with IPython notebook] (http://nbviewer.ipython.org/github/indranilsinharoy/PyZDDE/blob/master/Examples/IPNotebooks/00%20Using%20ZEMAX%20and%20PyZDDE%20with%20IPython%20notebook.ipynb) -- introduces basic capabilities of PyZDDE.

  2. Notes on ipzCaptureWindow() and ipzCaptureWindowLQ() functions for embedding Zemax graphics into notebooks -- shows how to use the two functions to directly import graphics windows from Zemax into the notebook.

Application showcases

  1. Simple fiber coupling analysis using Zemax's POP -- demonstrates how to access Zemax's POP analysis features using PyZDDE.

  2. [Speckle generation using Zemax's Grid Sag Surface] (http://nbviewer.ipython.org/github/indranilsinharoy/PyZDDE/blob/master/Examples/IPNotebooks/03%20Generation%20of%20Speckle%20using%20Zemax%20Grid%20Sag%20Surface.ipynb) -- demonstrates the use of Zemax's Grid Sag surface and POP analysis features to simulate speckle. Further, the first and second order characteristics of the speckle field are analyzed using Numpy and Matplotlib.