[yt-svn] commit/yt: ngoldbaum: Remove hard dependency on IPython.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Jul 18 21:28:56 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/8199477842d1/
Changeset:   8199477842d1
Branch:      yt-3.0
User:        ngoldbaum
Date:        2014-07-19 06:28:36
Summary:     Remove hard dependency on IPython.
Affected #:  1 file

diff -r cf4bf370b02ce0d94fd2b6c2a043883569b34ee7 -r 8199477842d116eb9db39d05da865eac48ceb30b yt/visualization/volume_rendering/transfer_function_helper.py
--- a/yt/visualization/volume_rendering/transfer_function_helper.py
+++ b/yt/visualization/volume_rendering/transfer_function_helper.py
@@ -19,7 +19,6 @@
 from yt.visualization.volume_rendering.api import ColorTransferFunction
 from yt.visualization._mpl_imports import FigureCanvasAgg
 from matplotlib.figure import Figure
-from IPython.core.display import Image
 from yt.extern.six.moves import StringIO
 import numpy as np
 
@@ -190,6 +189,7 @@
         ax.set_ylim(y.max()*1.0e-3, y.max()*2)
 
         if fn is None:
+            from IPython.core.display import Image
             f = StringIO()
             canvas.print_figure(f)
             f.seek(0)

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

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