jupyter
This commit is contained in:
35
packages/python/yap_kernel/yap_ipython/kernel/__init__.py
Normal file
35
packages/python/yap_kernel/yap_ipython/kernel/__init__.py
Normal 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 *
|
@@ -0,0 +1,3 @@
|
||||
if __name__ == '__main__':
|
||||
from yap_kernel import kernelapp as app
|
||||
app.launch_new_instance()
|
1
packages/python/yap_kernel/yap_ipython/kernel/adapter.py
Normal file
1
packages/python/yap_kernel/yap_ipython/kernel/adapter.py
Normal file
@@ -0,0 +1 @@
|
||||
from jupyter_client.adapter import *
|
@@ -0,0 +1 @@
|
||||
from jupyter_client.channels import *
|
@@ -0,0 +1 @@
|
||||
from jupyter_client.channelsabc import *
|
1
packages/python/yap_kernel/yap_ipython/kernel/client.py
Normal file
1
packages/python/yap_kernel/yap_ipython/kernel/client.py
Normal file
@@ -0,0 +1 @@
|
||||
from jupyter_client.client import *
|
@@ -0,0 +1 @@
|
||||
from jupyter_client.clientabc import *
|
2
packages/python/yap_kernel/yap_ipython/kernel/connect.py
Normal file
2
packages/python/yap_kernel/yap_ipython/kernel/connect.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from yap_kernel.connect import *
|
||||
from jupyter_client.connect import *
|
@@ -0,0 +1 @@
|
||||
from jupyter_client.kernelspec import *
|
@@ -0,0 +1 @@
|
||||
from jupyter_client.kernelspecapp import *
|
@@ -0,0 +1 @@
|
||||
from jupyter_client.launcher import *
|
1
packages/python/yap_kernel/yap_ipython/kernel/manager.py
Normal file
1
packages/python/yap_kernel/yap_ipython/kernel/manager.py
Normal file
@@ -0,0 +1 @@
|
||||
from jupyter_client.manager import *
|
@@ -0,0 +1 @@
|
||||
from jupyter_client.managerabc import *
|
@@ -0,0 +1 @@
|
||||
from jupyter_client.multikernelmanager import *
|
@@ -0,0 +1 @@
|
||||
from jupyter_client.restarter import *
|
@@ -0,0 +1 @@
|
||||
from jupyter_client.threaded import *
|
Reference in New Issue
Block a user