Installation#

conda pyviz badge conda defaults badge PyPI badge License badge

Panel is compatible with Python 3.9 or later and works seamlessly on Linux, Windows, and Mac.

Setup#

Note

Before proceeding, ensure you have Python installed on your system. If not, you can download and install Python from Python.org.

When using pip, it’s important to keep your default Python environment clean. Utilize virtual environments to isolate your projects effectively.

Note

Before proceeding, make sure you have either Anaconda or Miniconda installed on your system. If not, you can find installation instructions here.

When using conda, it’s crucial to maintain a clean base environment. Consider creating separate environments to manage your projects efficiently.

Installing Panel#

Now, let’s get Panel installed on your system.

pip install panel watchfiles
conda install panel watchfiles

Tip

We recommend also installing watchfiles while developing. This will provide a significantly better experience when using Panel’s autoreload features when activating --dev mode. It’s not needed for production.

Tip

To incorporate highlighted code sections into your app, you’ll need to install pygments, a powerful syntax highlighting library.

Important

Make sure Panel is installed in the same environment as JupyterLab/Jupyter Notebook (pip install panel or conda install panel) to ensure all features work correctly.

See also

If you plan to use Panel in a non-Jupyter notebook environment, such as Google Colab or VSCode, refer to the relevant how-to section.

Next Steps#

Now that you have installed Panel, let’s build a simple application.