Using eKonf class#

%config InlineBackend.figure_format='retina'
import logging
from ekorpkit import eKonf

logging.basicConfig(level=logging.WARNING)
print("version:", eKonf.__version__)
print("is notebook?", eKonf.is_notebook())
print("is colab?", eKonf.is_colab())
print("evironment varialbles:")
eKonf.print(eKonf.env().dict())
version: 0.1.33+15.ge9a9801.dirty
is notebook? True
is colab? False
evironment varialbles:
{'EKORPKIT_CONFIG_DIR': '/workspace/projects/ekorpkit-book/config',
 'EKORPKIT_DATA_DIR': None,
 'EKORPKIT_PROJECT': 'ekorpkit-book',
 'EKORPKIT_WORKSPACE_ROOT': '/workspace',
 'NUM_WORKERS': 230}
print(eKonf.nvidia_smi())
GPU 0: A100-SXM4-40GB (UUID: GPU-ba9eb436-2972-84ca-524a-5de92e8137a7)
GPU 1: A100-SXM4-40GB (UUID: GPU-1721f27e-bf66-757c-824c-59975caa94fd)
GPU 2: A100-SXM4-40GB (UUID: GPU-3f534872-147b-caff-42df-29734eb6c618)
GPU 3: A100-SXM4-40GB (UUID: GPU-1b8e4f1d-6a0d-6c8e-1cb3-a233d2b6a0f8)
GPU 4: A100-SXM4-40GB (UUID: GPU-b1f9efea-0e98-cda8-1b23-cf5991868878)
GPU 5: A100-SXM4-40GB (UUID: GPU-e2549b80-558c-8a9c-3426-98d7c85ddea1)
GPU 6: A100-SXM4-40GB (UUID: GPU-652bf721-96be-bc42-66b2-f8c3eadee2e7)
GPU 7: A100-SXM4-40GB (UUID: GPU-5b4af9ec-af51-7a89-334a-d8da5a8b485c)
eKonf.osenv("PYTHONPATH")