ModuleNotFoundError: No module named altair-viewer
This error occurs because you are trying to import module altair-viewer, but it is not installed in your python environment.
To install the module, execute the following command in termanal:
pip install altair-viewer
To install the module inside Google Colab, Kaggle/Jupyter Notebook or ipython environment, execute the following code line/cell:
!pip install altair-viewer
How it works:
pip - is a standard packet manager in python. This program can install missing module in your local development environment or current Google Colab/Kaggle/Jupyter Notebook session.
! - exclamation mark instructs interactive environment to interpret line/cell content as shell command, not as python code. This is needed because pip command should be executed in shell.
You have already made 2 right things: practicing python and googling error output. Those 2 kinds of actions define a developer. Repeat them long enough, and success is inevitable. Consider subscribing to our DEV blog - it definitely will help to learn python coding and best practices