get system info

get_env[source]

get_env(name)

Return env var value if it's defined and not an empty string, or return Unknown

try_import[source]

try_import(module)

Try to import module. Returns module's object on success, None on failure

show_install[source]

show_install(show_nvidia_smi:bool=False)

Print user's setup information

show_install()
=== Software === 
python        : 3.8.5
fastai        : 2.0.14
fastprogress  : 0.2.7
torch         : 1.6.0
torch cuda    : 10.2 / is available
torch cudnn   : 7605 / is enabled

=== Hardware === 
torch devices : 2
  - gpu0      : Quadro RTX 8000
  - gpu1      : GeForce RTX 2070 SUPER

=== Environment === 
platform      : Linux-5.4.0-42-generic-x86_64-with-glibc2.10
distro        : #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020
conda env     : fastai
python        : /home/tcapelle/miniconda3/envs/fastai/bin/python
sys.path      : /home/tcapelle/SteadySun/fastbench
/home/tcapelle/miniconda3/envs/fastai/lib/python38.zip
/home/tcapelle/miniconda3/envs/fastai/lib/python3.8
/home/tcapelle/miniconda3/envs/fastai/lib/python3.8/lib-dynload

/home/tcapelle/miniconda3/envs/fastai/lib/python3.8/site-packages
/home/tcapelle/Apps/fastai
/home/tcapelle/Apps/nbdev
/home/tcapelle/miniconda3/envs/fastai/lib/python3.8/site-packages/IPython/extensions
/home/tcapelle/.ipython
no nvidia-smi is found