require ipykernel

This commit is contained in:
Min RK 2015-12-10 11:02:36 +01:00 committed by sftnight
parent 01a82f38fd
commit 5cc49be53c
3 changed files with 9 additions and 27 deletions

View File

@ -2,17 +2,12 @@
C++ Kernel for Jupyter with Cling.
You will probably need to specify the path to cling with the `CLING_EXE` env variable.
**Note:** This currently requires master of everything IPython and Jupyter because that's what I use,
but I'll clean that up so it works on 3.x.
Requires ipykernel ≥ 4.0
## Install
To install the kernel:
jupyter kernelspec install cling
or for IPython/Jupyter < 4:
ipython kernelspec install cling
pip install -e .
# register the kernelspec:
jupyter kernelspec install [--user] cling

View File

@ -17,14 +17,9 @@ import select
import sys
import threading
try:
from ipykernel.kernelapp import IPKernelApp
except ImportError:
from IPython.kernel.zmq.kernelapp import IPKernelApp
try:
from ipykernel.kernelbase import Kernel
except ImportError:
from IPython.kernel.zmq.kernelbase import Kernel
from traitlets import Unicode, Float
from ipykernel.kernelapp import IPKernelApp
from ipykernel.kernelbase import Kernel
libc = ctypes.CDLL(None)
@ -34,12 +29,6 @@ except ValueError:
# libc.stdout is has a funny name on OS X
c_stdout_p = ctypes.c_void_p.in_dll(libc, '__stdoutp')
try:
from traitlets import Unicode, Float
except ImportError:
from IPython.utils.traitlets import Unicode, Float
class ClingKernel(Kernel):
"""Cling Kernel for Jupyter"""

View File

@ -65,10 +65,8 @@ if 'develop' in sys.argv or any(a.startswith('bdist') for a in sys.argv):
setuptools_args = {}
install_requires = setuptools_args['install_requires'] = [
'ipython',
'pyzmq',
'tornado',
'pexpect>=3.3',
'ipykernel',
'traitlets',
]
if 'setuptools' in sys.modules: