Skip to content

Commit

Permalink
DEBUG ENVS
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Nov 20, 2015
1 parent cf632c7 commit 1798ac8
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion glue/qt/widgets/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

from __future__ import absolute_import, division, print_function

import os
print("ENV-1", os.environ.get('QT_API', None))
import sys
import atexit
from distutils.version import LooseVersion
Expand All @@ -31,33 +33,53 @@
from ...utils import as_variable_name
from .glue_mdi_area import GlueMdiSubWindow

print("ENV-2", os.environ.get('QT_API', None))

from zmq import ZMQError
from zmq.eventloop.zmqstream import ZMQStream
from zmq.eventloop import ioloop

print("ENV-3", os.environ.get('QT_API', None))

import IPython
from IPython.core.usage import default_banner

IPYTHON_VERSION = LooseVersion(IPython.__version__)
print("ENV-4", os.environ.get('QT_API', None))

if IPYTHON_VERSION >= LooseVersion('4'):

from IPython import get_ipython

print("ENV-5", os.environ.get('QT_API', None))

from traitlets import TraitError

print("ENV-6", os.environ.get('QT_API', None))

from ipykernel import find_connection_file
print("ENV-61", os.environ.get('QT_API', None))
from ipykernel.kernelbase import Kernel
print("ENV-62", os.environ.get('QT_API', None))
from ipykernel.kernelapp import IPKernelApp
print("ENV-63", os.environ.get('QT_API', None))
from ipykernel.iostream import OutStream
print("ENV-64", os.environ.get('QT_API', None))
from ipykernel.inprocess.ipkernel import InProcessInteractiveShell
print("ENV-65", os.environ.get('QT_API', None))
from ipykernel.connect import get_connection_file

print("ENV-7", os.environ.get('QT_API', None))

from qtconsole.client import QtKernelClient
print("ENV-71", os.environ.get('QT_API', None))
from qtconsole.manager import QtKernelManager
print("ENV-72", os.environ.get('QT_API', None))
from qtconsole.inprocess import QtInProcessKernelManager
print("ENV-73", os.environ.get('QT_API', None))
from qtconsole.rich_jupyter_widget import RichJupyterWidget as RichIPythonWidget

print("ENV-74", os.environ.get('QT_API', None))

else:

from IPython.utils.traitlets import TraitError
Expand Down

0 comments on commit 1798ac8

Please sign in to comment.