##// END OF EJS Templates
on resume, print server info again...
Paul Ivanov -
Show More
@@ -576,7 +576,7 b' class NotebookApp(BaseIPythonApplication):'
576 """
576 """
577 # FIXME: remove this delay when pyzmq dependency is >= 2.1.11
577 # FIXME: remove this delay when pyzmq dependency is >= 2.1.11
578 time.sleep(0.1)
578 time.sleep(0.1)
579 sys.stdout.write("Shutdown Notebook Server (y/[n])? ")
579 sys.stdout.write("Shutdown Notebook Server at %s (y/[n])? " % self._url)
580 sys.stdout.flush()
580 sys.stdout.flush()
581 r,w,x = select.select([sys.stdin], [], [], 5)
581 r,w,x = select.select([sys.stdin], [], [], 5)
582 if r:
582 if r:
@@ -616,11 +616,16 b' class NotebookApp(BaseIPythonApplication):'
616 self.kernel_manager.shutdown_all()
616 self.kernel_manager.shutdown_all()
617
617
618 def start(self):
618 def start(self):
619 """ Start the IPython Notebok server app, after initialization
620
621 This method takes no arguments so all configuration and initialization
622 must be done prior to calling this method."""
619 ip = self.ip if self.ip else '[all ip addresses on your system]'
623 ip = self.ip if self.ip else '[all ip addresses on your system]'
620 proto = 'https' if self.certfile else 'http'
624 proto = 'https' if self.certfile else 'http'
621 info = self.log.info
625 info = self.log.info
622 info("The IPython Notebook is running at: %s://%s:%i%s" %
626 self._url = "%s://%s:%i%s" % (proto, ip, self.port,
623 (proto, ip, self.port,self.base_project_url) )
627 self.base_project_url)
628 info("The IPython Notebook is running at: %s" % self._url)
624 info("Use Control-C to stop this server and shut down all kernels.")
629 info("Use Control-C to stop this server and shut down all kernels.")
625
630
626 if self.open_browser or self.file_to_run:
631 if self.open_browser or self.file_to_run:
General Comments 0
You need to be logged in to leave comments. Login now