This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Simple function for embedding an IPython kernel.""" | |
import sys | |
from IPython.utils.frame import extract_module_locals | |
import ipykernel.kernelapp | |
from traitlets import Type | |
# Subclass the IPKernelApp, making it point to the SpyderKernel subclass of the IPython kernel. |