Tip

Make sure that these extensions are installed in VS Code:

  • Python
  • Jupyter
  • Quarto
  1. Clone the Inflation Explorer repository into VS Code.

  1. Create a virtual environment:
Terminal
python3 -m venv env
  1. Activate the virtual environment:
Terminal
source env/bin/activate
  1. Install the required packages from the requirements file:
Terminal
pip install -r requirements.txt
  1. Create a .env file:
Terminal
touch .env
  1. Put your environment variables in the .env file:
.env
BLS_KEY="key here"
CONNECT_SERVER="key here"
CONNECT_API_KEY="key here"
rsconnect add \
  --server https://pub.demo.posit.team/  \
  --name Demo 
  --api-key "gcySZCbkV1wB9qfwRreGrYy8DMhIYzkC"

The rsconnect-python package provides a CLI for interacting with and deploying to Posit Connec.t The rsconnect deploy command deploys the content to posit Connect.