diff --git a/notebook/base/zmqhandlers.py b/notebook/base/zmqhandlers.py index d092151f9f..f2a53ace7c 100644 --- a/notebook/base/zmqhandlers.py +++ b/notebook/base/zmqhandlers.py @@ -4,10 +4,8 @@ # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. -import os import json import struct -import warnings import sys try: diff --git a/notebook/services/kernels/handlers.py b/notebook/services/kernels/handlers.py index 303507b7d7..01aa3a8940 100644 --- a/notebook/services/kernels/handlers.py +++ b/notebook/services/kernels/handlers.py @@ -6,7 +6,6 @@ # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. -from functools import partial import json import logging from textwrap import dedent @@ -23,7 +22,6 @@ from ...base.handlers import APIHandler from ...base.zmqhandlers import AuthenticatedZMQStreamHandler, deserialize_binary_message -from jupyter_client import protocol_version as client_protocol_version class MainKernelHandler(APIHandler): diff --git a/notebook/services/kernels/kernelmanager.py b/notebook/services/kernels/kernelmanager.py index 1c63a81089..c32a6e5307 100644 --- a/notebook/services/kernels/kernelmanager.py +++ b/notebook/services/kernels/kernelmanager.py @@ -9,17 +9,15 @@ from collections import defaultdict from datetime import datetime, timedelta -from functools import partial import os import uuid from tornado import gen, web -from tornado.concurrent import Future from tornado.ioloop import IOLoop, PeriodicCallback from jupyter_kernel_mgmt.client import IOLoopKernelClient from jupyter_kernel_mgmt.restarter import TornadoKernelRestarter -from traitlets import (Any, Bool, Dict, List, Unicode, TraitError, Integer, +from traitlets import (Any, Bool, Dict, Unicode, TraitError, Integer, Float, Instance, default, validate ) from traitlets.config.configurable import LoggingConfigurable