Commit 939e713e authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz

tests: update to work with Jupyter 4.2

Jupyter 4.2 just landed in Debian unstable, so we have a few failures
because of all the renamings.

* tests/python/ipnbdoctest.py: Adjust imports for Jupyter 4.2.
parent 0b7b03c7
......@@ -30,13 +30,19 @@ except:
sys.exit(77)
try:
from IPython.kernel import KernelManager
from jupyter_client import KernelManager
except ImportError:
from IPython.zmq.blockingkernelmanager \
import BlockingKernelManager as KernelManager
try:
from IPython.kernel import KernelManager
except ImportError:
from IPython.zmq.blockingkernelmanager \
import BlockingKernelManager as KernelManager
# Until Debian ships IPython 3.0, we stick to the v3 format.
from IPython.nbformat import v3 as nbformat
# Until Debian Stable ships IPython >3.0, we stick to the v3 format.
try:
from nbformat import v3 as nbformat
except ImportError:
from IPython.nbformat import v3 as nbformat
def compare_png(a64, b64):
"""compare two b64 PNGs (incomplete)"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment