Show More
@@ -499,7 +499,7 b' class NotebookApp(BaseIPythonApplication):' | |||||
499 |
|
499 | |||
500 | trust_xheaders = Bool(False, config=True, |
|
500 | trust_xheaders = Bool(False, config=True, | |
501 | help=("Whether to trust or not X-Scheme/X-Forwarded-Proto and X-Real-Ip/X-Forwarded-For headers" |
|
501 | help=("Whether to trust or not X-Scheme/X-Forwarded-Proto and X-Real-Ip/X-Forwarded-For headers" | |
502 |
"sent by the upstream reverse proxy. Nec |
|
502 | "sent by the upstream reverse proxy. Necessary if the proxy handles SSL") | |
503 | ) |
|
503 | ) | |
504 |
|
504 | |||
505 | def parse_command_line(self, argv=None): |
|
505 | def parse_command_line(self, argv=None): | |
@@ -521,6 +521,13 b' class NotebookApp(BaseIPythonApplication):' | |||||
521 | """construct the kernel arguments""" |
|
521 | """construct the kernel arguments""" | |
522 | # Scrub frontend-specific flags |
|
522 | # Scrub frontend-specific flags | |
523 | self.kernel_argv = swallow_argv(self.argv, notebook_aliases, notebook_flags) |
|
523 | self.kernel_argv = swallow_argv(self.argv, notebook_aliases, notebook_flags) | |
|
524 | if any(arg.startswith(u'--pylab') for arg in self.kernel_argv): | |||
|
525 | self.log.warn('\n '.join([ | |||
|
526 | "Starting all kernels in pylab mode is not recommended.", | |||
|
527 | "Please use the %matplotlib magic to enable matplotlib instead.", | |||
|
528 | "pylab implies many imports, which can have confusing side effects", | |||
|
529 | "and harm the reproducibility of your notebooks.", | |||
|
530 | ])) | |||
524 | # Kernel should inherit default config file from frontend |
|
531 | # Kernel should inherit default config file from frontend | |
525 | self.kernel_argv.append("--IPKernelApp.parent_appname='%s'" % self.name) |
|
532 | self.kernel_argv.append("--IPKernelApp.parent_appname='%s'" % self.name) | |
526 | # Kernel should get *absolute* path to profile directory |
|
533 | # Kernel should get *absolute* path to profile directory |
General Comments 0
You need to be logged in to leave comments.
Login now