##// END OF EJS Templates
Make names in JSON more consistent as per @ellisonbg's suggestion.
Thomas Kluyver -
Show More
@@ -230,11 +230,11 b' class NbserverListApp(BaseIPythonApplication):'
230 230 def start(self):
231 231 if not self.json:
232 232 print("Currently running servers:")
233 for serverinfo in discover_running_servers(self.profile):
233 for serverinfo in list_running_servers(self.profile):
234 234 if self.json:
235 235 print(json.dumps(serverinfo))
236 236 else:
237 print(serverinfo['url'], "::", serverinfo['notebookdir'])
237 print(serverinfo['url'], "::", serverinfo['notebook_dir'])
238 238
239 239 #-----------------------------------------------------------------------------
240 240 # Aliases and Flags
@@ -746,8 +746,8 b' class NotebookApp(BaseIPythonApplication):'
746 746 'hostname': self.ip if self.ip else 'localhost',
747 747 'port': self.port,
748 748 'secure': bool(self.certfile),
749 'baseurlpath': self.base_project_url,
750 'notebookdir': os.path.abspath(self.notebook_manager.notebook_dir),
749 'base_project_url': self.base_project_url,
750 'notebook_dir': os.path.abspath(self.notebook_manager.notebook_dir),
751 751 }
752 752
753 753 def write_server_info_file(self):
General Comments 0
You need to be logged in to leave comments. Login now