/
importtests.py
103 lines (83 loc) · 2.31 KB
/
importtests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
if __name__ == '__main__':
# Make sure that we can import the modules that should be bundled with our
# Python package
try:
import bz2
except ImportError:
print("The 'bz2' module is not present!")
try:
import ipykernel
except ImportError:
print("The 'ipykernel' module is not present!")
try:
import IPython
except ImportError:
print("The 'IPython' module is not present!")
try:
import ipywidgets
except ImportError:
print("The 'ipywidgets' module is not present!")
try:
import jupyter_console
except ImportError:
print("The 'jupyter_console' module is not present!")
try:
import jupyterlab
except ImportError:
print("The 'jupyterlab' module is not present!")
try:
import lxml
except ImportError:
print("The 'lxml' module is not present!")
try:
import lzma
except ImportError:
print("The 'lzma' module is not present!")
try:
import matplotlib
except ImportError:
print("The 'matplotlib' module is not present!")
try:
import nbconvert
except ImportError:
print("The 'nbconvert' module is not present!")
try:
import notebook
except ImportError:
print("The 'notebook' module is not present!")
try:
import numpy
except ImportError:
print("The 'numpy' module is not present!")
try:
import qimage2ndarray
except ImportError:
print("The 'qimage2ndarray' module is not present!")
try:
import qtconsole
except ImportError:
print("The 'qtconsole' module is not present!")
try:
import scipy
except ImportError:
print("The 'scipy' module is not present!")
try:
import sphinx
except ImportError:
print("The 'sphinx' module is not present!")
try:
import sqlite3
except ImportError:
print("The 'sqlite3' module is not present!")
try:
import ssl
except ImportError:
print("The 'ssl' module is not present!")
try:
import traitlets
except ImportError:
print("The 'traitlets' module is not present!")
try:
import zlib
except ImportError:
print("The 'zlib' module is not present!")