Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
irgolic committed May 20, 2020
1 parent 98839fc commit a1ebfca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
17 changes: 4 additions & 13 deletions Orange/widgets/data/owpythonscript.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,27 @@
import glob
import sys
import os
import code
import keyword
import itertools
import tokenize
import unicodedata
import codecs
import pickle
from functools import reduce
from collections import defaultdict
from unittest.mock import patch

from typing import Optional, List, TYPE_CHECKING, NamedTuple
from typing import Optional, List, TYPE_CHECKING

from jupyter_client import MultiKernelManager
from jupyter_client.kernelspec import KernelSpecManager, NoSuchKernel

import qutepart

from AnyQt.QtWidgets import (
QPlainTextEdit, QListView, QSizePolicy, QMenu, QSplitter, QLineEdit,
QListView, QSizePolicy, QMenu, QSplitter, QLineEdit,
QAction, QToolButton, QFileDialog, QStyledItemDelegate,
QStyleOptionViewItem, QPlainTextDocumentLayout,
QLabel, QWidget, QHBoxLayout, QMessageBox)
from AnyQt.QtGui import (
QColor, QBrush, QPalette, QFont, QTextDocument,
QSyntaxHighlighter, QTextCharFormat, QTextCursor, QKeySequence,
QColor, QPalette, QFont, QTextDocument, QTextCursor, QKeySequence,
QFontMetrics, QDesktopServices, QPainter)
from AnyQt.QtCore import Qt, QRegExp, QByteArray, QItemSelectionModel, QSize, \
from AnyQt.QtCore import Qt, QByteArray, QItemSelectionModel, QSize, \
Signal, QUrl, QObject, QRectF

import pygments.style
Expand All @@ -37,13 +30,11 @@
from Orange.canvas import config
from orangecanvas.gui.utils import message_question, message_information
from qtconsole import styles
from qtconsole.jupyter_widget import JupyterWidget
from qtconsole.pygments_highlighter import PygmentsHighlighter
from qtconsole.rich_jupyter_widget import RichJupyterWidget

from Orange.data import Table
from Orange.base import Learner, Model
from Orange.util import interleave
from Orange.widgets import gui
from Orange.widgets.utils import itemmodels
from Orange.widgets.settings import Setting
Expand Down
1 change: 0 additions & 1 deletion Orange/widgets/data/utils/kernel.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import codecs
import pickle
import sys
from collections import defaultdict

from ipykernel.ipkernel import IPythonKernel
Expand Down

0 comments on commit a1ebfca

Please sign in to comment.