[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed May 18 11:12:29 PDT 2016
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/c568bda39a77/
Changeset: c568bda39a77
Branch: yt
User: ngoldbaum
Date: 2016-05-15 16:29:41+00:00
Summary: silence deprecation warning from IPython
Affected #: 2 files
diff -r 8d076b60c7dacde1de17041f79ff1a6bd0c3ea8e -r c568bda39a77bd94f416a04930b59dc067410c33 yt/funcs.py
--- a/yt/funcs.py
+++ b/yt/funcs.py
@@ -318,7 +318,10 @@
ipshell(header = __header % dd,
local_ns = loc, global_ns = glo)
else:
- from IPython.config.loader import Config
+ try:
+ from traitlets.config.loader import Config
+ except ImportError:
+ from IPython.config.loader import Config
cfg = Config()
cfg.InteractiveShellEmbed.local_ns = loc
cfg.InteractiveShellEmbed.global_ns = glo
diff -r 8d076b60c7dacde1de17041f79ff1a6bd0c3ea8e -r c568bda39a77bd94f416a04930b59dc067410c33 yt/utilities/command_line.py
--- a/yt/utilities/command_line.py
+++ b/yt/utilities/command_line.py
@@ -692,7 +692,10 @@
"\nHi there! Welcome to yt.\n\nWe've loaded your dataset as 'ds'. Enjoy!"
)
else:
- from IPython.config.loader import Config
+ try:
+ from traitlets.config.loader import Config
+ except ImportError:
+ from IPython.config.loader import Config
import sys
cfg = Config()
# prepend sys.path with current working directory
https://bitbucket.org/yt_analysis/yt/commits/cfc61bdb1b70/
Changeset: cfc61bdb1b70
Branch: yt
User: jzuhone
Date: 2016-05-18 18:12:17+00:00
Summary: Merged in ngoldbaum/yt (pull request #2175)
silence deprecation warning from IPython
Affected #: 2 files
diff -r 506d890f8554f9d7c95480410f8add32981b7e7f -r cfc61bdb1b70f6ae65acd4bad85e0aee069bbd62 yt/funcs.py
--- a/yt/funcs.py
+++ b/yt/funcs.py
@@ -318,7 +318,10 @@
ipshell(header = __header % dd,
local_ns = loc, global_ns = glo)
else:
- from IPython.config.loader import Config
+ try:
+ from traitlets.config.loader import Config
+ except ImportError:
+ from IPython.config.loader import Config
cfg = Config()
cfg.InteractiveShellEmbed.local_ns = loc
cfg.InteractiveShellEmbed.global_ns = glo
diff -r 506d890f8554f9d7c95480410f8add32981b7e7f -r cfc61bdb1b70f6ae65acd4bad85e0aee069bbd62 yt/utilities/command_line.py
--- a/yt/utilities/command_line.py
+++ b/yt/utilities/command_line.py
@@ -692,7 +692,10 @@
"\nHi there! Welcome to yt.\n\nWe've loaded your dataset as 'ds'. Enjoy!"
)
else:
- from IPython.config.loader import Config
+ try:
+ from traitlets.config.loader import Config
+ except ImportError:
+ from IPython.config.loader import Config
import sys
cfg = Config()
# prepend sys.path with current working directory
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-svn-spacepope.org/attachments/20160518/94a47ef6/attachment-0002.htm>
More information about the yt-svn
mailing list