[yt-svn] commit/yt: 2 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Jul 17 06:17:09 PDT 2014


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/52c844f61a99/
Changeset:   52c844f61a99
Branch:      yt-3.0
User:        ngoldbaum
Date:        2014-07-16 20:58:48
Summary:     Making it possible to specify an IPython profile with "yt notebook".

Also cleaning up some long lines.
Affected #:  1 file

diff -r fe6b0d8e6f9c4aaefccaa556dab34b11f8a1fd33 -r 52c844f61a99973e75dcc5071543041dc1dc141f yt/utilities/command_line.py
--- a/yt/utilities/command_line.py
+++ b/yt/utilities/command_line.py
@@ -1440,6 +1440,9 @@
             dict(short="-p", longname="--port", action="store",
                  default = 0, dest='port',
                  help="Port to listen on; defaults to auto-detection."),
+            dict(short="-prof", longname="--profile", action="store",
+                 default = None, dest="profile",
+                 help="The IPython profile to use when lauching the kernel."),
             dict(short="-n", longname="--no-password", action="store_true",
                  default = False, dest='no_password',
                  help="If set, do not prompt or use a password."),
@@ -1456,7 +1459,8 @@
         except ImportError:
             # pre-IPython v1.0
             from IPython.frontend.html.notebook.notebookapp import NotebookApp
-        print "You must choose a password so that others cannot connect to your notebook."
+        print "You must choose a password so that others cannot connect to " \
+              "your notebook."
         pw = ytcfg.get("yt", "notebook_password")
         if len(pw) == 0 and not args.no_password:
             import IPython.lib
@@ -1471,6 +1475,8 @@
             pw = None
         if args.port != 0:
             kwargs['port'] = int(args.port)
+        if args.profile is not None:
+            kwargs['profile'] = args.profile
         if pw is not None:
             kwargs['password'] = pw
         app = NotebookApp(open_browser=args.open_browser,
@@ -1487,7 +1493,8 @@
         print "~C and then typing -L%s:localhost:%s" % (app.port, app.port)
         print "where the first number is the port on your local machine. "
         print
-        print "If you are using %s on your machine already, try -L8889:localhost:%s" % (app.port, app.port)
+        print "If you are using %s on your machine already, try " \
+              "-L8889:localhost:%s" % (app.port, app.port)
         print
         print "***************************************************************"
         print


https://bitbucket.org/yt_analysis/yt/commits/dd9c415ca94d/
Changeset:   dd9c415ca94d
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-07-17 15:17:02
Summary:     Merged in ngoldbaum/yt/yt-3.0 (pull request #1024)

Making it possible to specify an IPython profile with "yt notebook".
Affected #:  1 file

diff -r 990c27c2dd3ca0be052231028ae4aa02e07ad380 -r dd9c415ca94dcf54849b3760a290a783f5cd44e4 yt/utilities/command_line.py
--- a/yt/utilities/command_line.py
+++ b/yt/utilities/command_line.py
@@ -1440,6 +1440,9 @@
             dict(short="-p", longname="--port", action="store",
                  default = 0, dest='port',
                  help="Port to listen on; defaults to auto-detection."),
+            dict(short="-prof", longname="--profile", action="store",
+                 default = None, dest="profile",
+                 help="The IPython profile to use when lauching the kernel."),
             dict(short="-n", longname="--no-password", action="store_true",
                  default = False, dest='no_password',
                  help="If set, do not prompt or use a password."),
@@ -1456,7 +1459,8 @@
         except ImportError:
             # pre-IPython v1.0
             from IPython.frontend.html.notebook.notebookapp import NotebookApp
-        print "You must choose a password so that others cannot connect to your notebook."
+        print "You must choose a password so that others cannot connect to " \
+              "your notebook."
         pw = ytcfg.get("yt", "notebook_password")
         if len(pw) == 0 and not args.no_password:
             import IPython.lib
@@ -1471,6 +1475,8 @@
             pw = None
         if args.port != 0:
             kwargs['port'] = int(args.port)
+        if args.profile is not None:
+            kwargs['profile'] = args.profile
         if pw is not None:
             kwargs['password'] = pw
         app = NotebookApp(open_browser=args.open_browser,
@@ -1487,7 +1493,8 @@
         print "~C and then typing -L%s:localhost:%s" % (app.port, app.port)
         print "where the first number is the port on your local machine. "
         print
-        print "If you are using %s on your machine already, try -L8889:localhost:%s" % (app.port, app.port)
+        print "If you are using %s on your machine already, try " \
+              "-L8889:localhost:%s" % (app.port, app.port)
         print
         print "***************************************************************"
         print

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