scimba_torch.utils.environment¶
A module to check the current environment.
Functions
Get the width of the current terminal. |
|
Check if code is run within google.colab. |
|
Check if code is run within a jupyter notebook. |
|
Check if one can trust dynamic width for tqdm. |
- is_jupyter_notebook()[source]¶
Check if code is run within a jupyter notebook.
- Return type:
bool- Returns:
True if running inside a Jupyter-like environment (Notebook, JupyterLab, VSCode notebooks, …?)
- is_google_colab()[source]¶
Check if code is run within google.colab.
- Return type:
bool- Returns:
True if running inside google.colab)