Skip to content

Commit

Permalink
Merge pull request #96 from takluyver/no-detect-venv
Browse files Browse the repository at this point in the history
Don't try to detect virtualenvs when starting a kernel
  • Loading branch information
minrk committed Feb 24, 2016
2 parents 1d97cb2 + c108641 commit 25591f8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ipykernel/zmqshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,14 +487,17 @@ def set_parent(self, parent):
def get_parent(self):
return self.parent_header

#-------------------------------------------------------------------------
# Things related to magics
#-------------------------------------------------------------------------

def init_magics(self):
super(ZMQInteractiveShell, self).init_magics()
self.register_magics(KernelMagics)
self.magics_manager.register_alias('ed', 'edit')

def init_virtualenv(self):
# Overridden not to do virtualenv detection, because it's probably
# not appropriate in a kernel. To use a kernel in a virtualenv, install
# it inside the virtualenv.
# http://ipython.readthedocs.org/en/latest/install/kernel_install.html
pass


InteractiveShellABC.register(ZMQInteractiveShell)

0 comments on commit 25591f8

Please sign in to comment.