Note on Lightbox: This example has been tested and works with Quarto versions 1.0.36 and 1.1.189 and Lightbox version 0.1.3.
Steps:
- Test locally
- Acquire an API key
- Publish with your method of choice
Tip: Use quarto projects for the most robust publishing experience. The rsconnect-python package (and git backed publishing on Connect) as of 2022/11/07 do not have support for publishing standalone documents and needs quarto content to be in a project.
Quarto CLI
quarto publish connect quarto-python-lightbox.qmd
rsconnect-python
Configure your server address:
rsconnect add \
--api-key <MY-API-KEY> \
--server <https://connect.example.org:3939> \
--name <SERVER-NICKNAME>
Create the requirements file:
python -m pip freeze > requirements.txt
Publish:
rsconnect deploy quarto . -n <SERVER-NICKNAME>
Important: If your Quarto content contains R code, you cannot use the rsconnect-python CLI's rsconnect deploy quarto function. You can still use rsconnect deploy manifest to deploy content for which a manifest has already been generated. Instead use rsconnect.
git-backed
Writing the manifest file:
rsconnect write-manifest quarto .