quarto-dev / quarto-python Goto Github PK
View Code? Open in Web Editor NEWPython interface to quarto-cli
License: GNU General Public License v2.0
Python interface to quarto-cli
License: GNU General Public License v2.0
@jjallaire Here are some thoughts on how we might enable Python users to more easily install quarto.
This would work if you think of it as the Python package just bootstrapping the installation process for you.
pip install quarto
python -m quarto install-cli [--version=<latest|prerelease|1.3.450>]
Or if we're literally bundling the quarto binaries into packages hosted on pip, it might be more like:
# Doesn't install quarto cli
pip install quarto
# Installs for Windows
pip install quarto[cli-windows]
# etc.
pip install quarto[cli-mac]
pip install quarto[cli-linux-x64]
pip install quarto[cli-linux-arm64]
# Or maybe automatically??
pip install quarto[cli]
Both methods below will need to discover the latest current (or prerelease, optionally?) quarto version so it knows what to download. Also should be able to let the user specify the desired version.
Download a platform-specific tarball from https://quarto.org/docs/download/ and unpack it somewhere within sysconfig.get_path("data")
. Set up a quarto
alias or passthrough script and put it in sysconfig.get_path("scripts")
.
For system Python, I think there's not a reason to do a tarball and it's better just to install from the normal installer. Otherwise we're trying to untar stuff into /usr/local/bin
or whatever, which both feels aggressive and also would require the user to retry the command with sudo.
In this case, we'd just download the installer to a temp directory and invoke it, I guess?
Detecting whether in a venv/virtualenv/pyvenv/pipenv or conda env
---
title: "Quarto Basics"
format:
html:
code-fold: true
jupyter: python3
---
` ` `{python}
#| label: holoviews
#| fig-cap: "Holoviews plot"
import numpy as np
import holoviews as hv;
hv.extension('bokeh', logo=False);
r = np.arange(0, 2, 0.01)
theta = 4 * np.pi * r
hv.Curve((theta,r))
` ` `
does not render correctly, e.g, with html and with pdf output
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.