This commit is contained in:
Vitor Santos Costa
2018-01-05 16:57:38 +00:00
parent 814aa2bd4c
commit 9c862c21bc
271 changed files with 43711 additions and 6129 deletions

View File

@@ -0,0 +1,35 @@
"""
Shim to maintain backwards compatibility with old yap_ipython.kernel imports.
"""
# Copyright (c) yap_ipython Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
from warnings import warn
from yap_ipython.utils.shimmodule import ShimModule, ShimWarning
warn("The `yap_ipython.kernel` package has been deprecated since yap_ipython 4.0."
"You should import from yap_kernel or jupyter_client instead.", ShimWarning)
# zmq subdir is gone
sys.modules['yap_ipython.kernel.zmq.session'] = ShimModule(
src='yap_ipython.kernel.zmq.session', mirror='jupyter_client.session')
sys.modules['yap_ipython.kernel.zmq'] = ShimModule(
src='yap_ipython.kernel.zmq', mirror='yap_kernel')
for pkg in ('comm', 'inprocess'):
src = 'yap_ipython.kernel.%s' % pkg
sys.modules[src] = ShimModule(src=src, mirror='yap_kernel.%s' % pkg)
for pkg in ('ioloop', 'blocking'):
src = 'yap_ipython.kernel.%s' % pkg
sys.modules[src] = ShimModule(src=src, mirror='jupyter_client.%s' % pkg)
# required for `from yap_ipython.kernel import PKG`
from yap_kernel import comm, inprocess
from jupyter_client import ioloop, blocking
# public API
from yap_kernel.connect import *
from jupyter_client import *

View File

@@ -0,0 +1,3 @@
if __name__ == '__main__':
from yap_kernel import kernelapp as app
app.launch_new_instance()

View File

@@ -0,0 +1 @@
from jupyter_client.adapter import *

View File

@@ -0,0 +1 @@
from jupyter_client.channels import *

View File

@@ -0,0 +1 @@
from jupyter_client.channelsabc import *

View File

@@ -0,0 +1 @@
from jupyter_client.client import *

View File

@@ -0,0 +1 @@
from jupyter_client.clientabc import *

View File

@@ -0,0 +1,2 @@
from yap_kernel.connect import *
from jupyter_client.connect import *

View File

@@ -0,0 +1 @@
from jupyter_client.kernelspec import *

View File

@@ -0,0 +1 @@
from jupyter_client.kernelspecapp import *

View File

@@ -0,0 +1 @@
from jupyter_client.launcher import *

View File

@@ -0,0 +1 @@
from jupyter_client.manager import *

View File

@@ -0,0 +1 @@
from jupyter_client.managerabc import *

View File

@@ -0,0 +1 @@
from jupyter_client.multikernelmanager import *

View File

@@ -0,0 +1 @@
from jupyter_client.restarter import *

View File

@@ -0,0 +1 @@
from jupyter_client.threaded import *