show_versions#
- scikitplot.show_versions(mode='stdout')[source]#
Print or return debugging information about the system, Python, dependencies, and hardware.
- Parameters:
- mode{‘stdout’, ‘dict’, ‘yaml’, ‘rich’}, default=’stdout’
‘stdout’: prints information to console using
rich(if available) or plain text.‘dict’: returns the information as a nested dictionary.
‘yaml’: returns the information in YAML format (requires PyYAML).
‘rich’: prints formatted output using rich library.
- Returns:
- version_datastr, dict or None
If
mode='dict', returns a dictionary of version information. Ifmode='yaml', returns a string of version information. Otherwise, returns None.
- Parameters:
mode (str)
- Return type:
Notes
Useful for debugging and issue reporting.
Examples
>>> import scikitplot >>> scikitplot.show_versions()
System Information: python: 3.11.14 (main, Oct 10 2025, 16:22:04) [GCC 11.4.0] executable: /home/circleci/.pyenv/versions/3.11.14/bin/python3.11 is_free_threaded: False python_implementation: CPython CPU: x86_64 cores: 36 architecture: x86_64 OS: Linux-6.8.0-1040-aws-x86_64-with-glibc2.35 ci: true Python Dependencies: scikitplot: 0.5.dev0+git.20260126.729947e pip: 25.2 meson-python: 0.19.0 setuptools: 79.0.1 cython: 3.2.4 numpy: 2.4.1 scipy: 1.17.0 pandas: 3.0.0 matplotlib: 3.10.8 scikit-learn: 1.8.0 joblib: 1.5.3 threadpoolctl: 3.6.0 aggdraw: 1.4.1 seaborn: 0.13.2 bokeh: None plotly: 6.5.2 streamlit: None gradio: None pyyaml: 6.0.3 Environment Variables: MKL_NUM_THREADS: None OMP_NUM_THREADS: None OPENBLAS_NUM_THREADS: None GPU Information: cuda: None gpu: None mps: None xla: None xpu: None Threadpoolctl Information: user_api: blas internal_api: openblas num_threads: 36 prefix: libscipy_openblas filepath: /home/circleci/.pyenv/versions/3.11.14/lib/python3.11/site-packages/numpy.libs/libscipy_openblas64_-fdde5778.so version: 0.3.30 threading_layer: pthreads architecture: SkylakeX>>> import scikitplot >>> scikitplot.show_versions(mode="dict")
{'system': {'python': '3.11.14 (main, Oct 10 2025, 16:22:04) [GCC 11.4.0]', 'executable': '/home/circleci/.pyenv/versions/3.11.14/bin/python3.11', 'is_free_threaded': False, 'python_implementation': 'CPython', 'CPU': 'x86_64', 'cores': 36, 'architecture': 'x86_64', 'OS': 'Linux-6.8.0-1040-aws-x86_64-with-glibc2.35', 'ci': 'true'}, 'dependencies': {'scikitplot': '0.5.dev0+git.20260126.729947e', 'pip': '25.2', 'meson-python': '0.19.0', 'setuptools': '79.0.1', 'cython': '3.2.4', 'numpy': '2.4.1', 'scipy': '1.17.0', 'pandas': '3.0.0', 'matplotlib': '3.10.8', 'scikit-learn': '1.8.0', 'joblib': '1.5.3', 'threadpoolctl': '3.6.0', 'aggdraw': '1.4.1', 'seaborn': '0.13.2', 'bokeh': None, 'plotly': '6.5.2', 'streamlit': None, 'gradio': None, 'pyyaml': '6.0.3'}, 'environment': {'MKL_NUM_THREADS': None, 'OMP_NUM_THREADS': None, 'OPENBLAS_NUM_THREADS': None}, 'gpu': {'cuda': None, 'gpu': None, 'mps': None, 'xla': None, 'xpu': None}, 'threadpoolctl': [{'user_api': 'blas', 'internal_api': 'openblas', 'num_threads': 36, 'prefix': 'libscipy_openblas', 'filepath': '/home/circleci/.pyenv/versions/3.11.14/lib/python3.11/site-packages/numpy.libs/libscipy_openblas64_-fdde5778.so', 'version': '0.3.30', 'threading_layer': 'pthreads', 'architecture': 'SkylakeX'}]}>>> # !scikitplot show_versions -j >>> !scikitplot show_versions || true
[32m[1mChanged logging level: WARNING[0m [1;36mScikit-plot Version Information:[0m System Information: python: 3.11.14 (main, Oct 10 2025, 16:22:04) [GCC 11.4.0] executable: /home/circleci/.pyenv/versions/3.11.14/bin/python is_free_threaded: False python_implementation: CPython CPU: x86_64 cores: 36 architecture: x86_64 OS: Linux-6.8.0-1040-aws-x86_64-with-glibc2.35 ci: true Python Dependencies: scikitplot: 0.5.dev0+git.20260126.729947e pip: 25.2 meson-python: 0.19.0 setuptools: 79.0.1 cython: 3.2.4 numpy: 2.4.1 scipy: 1.17.0 pandas: 3.0.0 matplotlib: 3.10.8 scikit-learn: 1.8.0 joblib: 1.5.3 threadpoolctl: 3.6.0 aggdraw: 1.4.1 seaborn: 0.13.2 bokeh: None plotly: 6.5.2 streamlit: None gradio: None pyyaml: 6.0.3 Environment Variables: MKL_NUM_THREADS: None OMP_NUM_THREADS: None OPENBLAS_NUM_THREADS: None GPU Information: cuda: None gpu: None mps: None xla: None xpu: None Threadpoolctl Information: user_api: blas internal_api: openblas num_threads: 36 prefix: libscipy_openblas filepath: /home/circleci/.pyenv/versions/3.11.14/lib/python3.11/site-packages/numpy.libs/libscipy_openblas64_-fdde5778.so version: 0.3.30 threading_layer: pthreads architecture: SkylakeX user_api: blas internal_api: openblas num_threads: 36 prefix: libscipy_openblas filepath: /home/circleci/.pyenv/versions/3.11.14/lib/python3.11/site-packages/scipy.libs/libscipy_openblas-6cdc3b4a.so version: 0.3.30 threading_layer: pthreads architecture: SkylakeX user_api: openmp internal_api: openmp num_threads: 36 prefix: libgomp filepath: /home/circleci/.pyenv/versions/3.11.14/lib/python3.11/site-packages/scikit_learn.libs/libgomp-e985bcbb.so.1.0.0 version: None