Show More
@@ -354,8 +354,6 class NotebookApp(BaseIPythonApplication): | |||||
354 | list=(NbserverListApp, NbserverListApp.description.splitlines()[0]), |
|
354 | list=(NbserverListApp, NbserverListApp.description.splitlines()[0]), | |
355 | ) |
|
355 | ) | |
356 |
|
356 | |||
357 | ipython_kernel_argv = List(Unicode) |
|
|||
358 |
|
||||
359 | _log_formatter_cls = LogFormatter |
|
357 | _log_formatter_cls = LogFormatter | |
360 |
|
358 | |||
361 | def _log_level_default(self): |
|
359 | def _log_level_default(self): | |
@@ -777,12 +775,6 class NotebookApp(BaseIPythonApplication): | |||||
777 | c.NotebookApp.file_to_run = f |
|
775 | c.NotebookApp.file_to_run = f | |
778 | self.update_config(c) |
|
776 | self.update_config(c) | |
779 |
|
777 | |||
780 | def init_kernel_argv(self): |
|
|||
781 | """add the profile-dir to arguments to be passed to IPython kernels""" |
|
|||
782 | # FIXME: remove special treatment of IPython kernels |
|
|||
783 | # Kernel should get *absolute* path to profile directory |
|
|||
784 | self.ipython_kernel_argv = ["--profile-dir", self.profile_dir.location] |
|
|||
785 |
|
||||
786 | def init_configurables(self): |
|
778 | def init_configurables(self): | |
787 | self.kernel_spec_manager = self.kernel_spec_manager_class( |
|
779 | self.kernel_spec_manager = self.kernel_spec_manager_class( | |
788 | parent=self, |
|
780 | parent=self, | |
@@ -791,7 +783,6 class NotebookApp(BaseIPythonApplication): | |||||
791 | self.kernel_manager = self.kernel_manager_class( |
|
783 | self.kernel_manager = self.kernel_manager_class( | |
792 | parent=self, |
|
784 | parent=self, | |
793 | log=self.log, |
|
785 | log=self.log, | |
794 | ipython_kernel_argv=self.ipython_kernel_argv, |
|
|||
795 | connection_dir=self.profile_dir.security_dir, |
|
786 | connection_dir=self.profile_dir.security_dir, | |
796 | ) |
|
787 | ) | |
797 | self.contents_manager = self.contents_manager_class( |
|
788 | self.contents_manager = self.contents_manager_class( | |
@@ -999,7 +990,6 class NotebookApp(BaseIPythonApplication): | |||||
999 | def initialize(self, argv=None): |
|
990 | def initialize(self, argv=None): | |
1000 | super(NotebookApp, self).initialize(argv) |
|
991 | super(NotebookApp, self).initialize(argv) | |
1001 | self.init_logging() |
|
992 | self.init_logging() | |
1002 | self.init_kernel_argv() |
|
|||
1003 | self.init_configurables() |
|
993 | self.init_configurables() | |
1004 | self.init_components() |
|
994 | self.init_components() | |
1005 | self.init_webapp() |
|
995 | self.init_webapp() |
General Comments 0
You need to be logged in to leave comments.
Login now