-
-
Notifications
You must be signed in to change notification settings - Fork 395
/
_versions.py
64 lines (55 loc) · 1.08 KB
/
_versions.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
import sys
import platform
__all__ = ("show_versions",)
PACKAGES = [
# Data
"cudf",
"dask",
"ibis",
"networkx",
"numpy",
"pandas",
"pyarrow",
"spatialpandas",
"streamz",
"xarray",
# Processing
"numba",
"skimage",
"scipy",
# Plotting
"bokeh",
"colorcet",
"datashader",
"geoviews",
"hvplot",
"matplotlib",
"PIL",
"plotly",
# Jupyter
"IPython",
"jupyter_bokeh",
"jupyterlab",
"notebook",
# Misc
"panel",
"param",
]
def show_versions():
print(f"Python : {sys.version}")
print(f"Operating system : {platform.platform()}")
_panel_comms()
print()
_package_version("holoviews")
print()
for p in sorted(PACKAGES, key=lambda x: x.lower()):
_package_version(p)
def _package_version(p):
try:
__import__(p)
print(f"{p:20}: {sys.modules[p].__version__}")
except ImportError:
print(f"{p:20}: -")
def _panel_comms():
import panel as pn
print(f"{'Panel comms':20}: {pn.config.comms}")