observablehq / framework

A static site generator for data apps, dashboards, reports, and more. Observable Framework combines JavaScript on the front-end for interactive graphics with any language on the back-end for data analysis.
https://observablehq.com/framework/
ISC License
2.13k stars 85 forks source link

consolidate venv docs #1468

Closed mbostock closed 2 weeks ago

mbostock commented 2 weeks ago

This consolidates the recommendation on using a Python virtual environment to the Data loaders: Execution page. In addition, it avoids using $ when demonstrating commands so that the code can be copied using the copy button and pasted into the terminal without editing.

The virtual environment documentation is now also slightly expanded to cover both venv and uv:

Screenshot 2024-06-14 at 6 39 44 PM

Before:

Screenshot 2024-06-14 at 6 40 43 PM

After:

Screenshot 2024-06-14 at 6 39 29 PM
mbostock commented 2 weeks ago

Note: Once this is approved, I will manually re-deploy the affected examples.

allisonhorst commented 2 weeks ago

So much better! Thank you!