From 93a9acfa214378b0a14ff1e2a986b8e52a3434a6 Mon Sep 17 00:00:00 2001 From: MinRK Date: Sat, 20 Sep 2014 12:13:24 -0700 Subject: [PATCH] don't pass notebook app args to kernel 2.x compatibility fix --- jupyterhub/singleuserapp.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jupyterhub/singleuserapp.py b/jupyterhub/singleuserapp.py index 301f3ceb..41525f16 100644 --- a/jupyterhub/singleuserapp.py +++ b/jupyterhub/singleuserapp.py @@ -94,6 +94,11 @@ class SingleUserNotebookApp(NotebookApp): # disable the exit confirmation for background notebook processes ioloop.IOLoop.instance().stop() + def init_kernel_argv(self): + """construct the kernel arguments""" + # FIXME: This is 2.x-compat, remove when 3.x is requred + self.kernel_argv = ["--profile-dir", self.profile_dir.location] + def init_webapp(self): # monkeypatch authentication to use the hub from IPython.html.base.handlers import AuthenticatedHandler