Installation of panda-client

This section explains how to install panda-client on JupyterLab.

Launch a notebook and install panda-client using pip

[ ]:
import sys
!{sys.executable} -m pip install panda-client[jupyter]

Copy the setup file

[ ]:
!mkdir ~/.panda
!cp {sys.exec_prefix}/etc/panda/panda_setup.example.cfg ~/.panda/panda_setup.cfg

The setup file is copied to the subdirectory where you started JupyterLab and shows up in the Files tab on the Left Sidebar.

Modify the setup file if necessary

The setup file contains all configuration parameters. You need to change the following parameters in the setup file if any:

  • PANDA_URL_SSL: Base HTTPS URL of PanDA server

  • PANDA_URL: Base HTTP URL of PanDA server

  • PANDA_AUTH_VO: Virtual organization name (required only when PANDA_AUTH = oidc)

  • PANDA_AUTH: Authentication mechanism (oidc, x509, x509_no_grid)

  • PANDA_USE_NATIVE_HTTPLIB: Use native httplib instead of curl for HTTP operations

  • X509_USER_PROXY: Grid proxy file path (required only when PANDA_AUTH = x509_no_grid)

  • PANDA_NICKNAME: Grid nickname (required only when PANDA_AUTH = x509_no_grid)

Setup example for DOMA using OIDC/OAuth2.0 authentication


Then you need to get an ID token as explained in the next page.

Setup example for ATLAS using X509 authentication without grid middleware

PANDA_AUTH = x509_no_grid
X509_USER_PROXY = /Users/hage/x509up_u17959
PANDA_NICKNAME = my_nickname

Make sure that you generate a grid proxy file somewhere and copy it to the filepath defined by X509_USER_PROXY. Also, PANDA_NICKNAME needs to be consisitent with the nickname in ATLAS VOMS.

Download notebook