print("hello world")
hello world
print("hello world")
hello world
hello.py
# hello.py
print("hello world")
hello world
*To work with .qmd files, Python needs a package akin to R “languageserver”
py -m pip install jupyter matplotlib plotly
hello.qmd
hello.qmd
on this cell:import numpy as np
import matplotlib.pyplot as plt
= np.arange(0, 2, 0.01)
r = 2 * np.pi * r
theta = plt.subplots(
fig, ax = {'projection': 'polar'}
subplot_kw
)
ax.plot(theta, r)0.5, 1, 1.5, 2])
ax.set_rticks([True)
ax.grid( plt.show()
ipykernel
hello.qmd
in VS Code.hello.qmd
either by pressing [>] or by using ctrl+shift+k.To make this document.
---
title: "Python, VS Code, Quarto"
format:
html:
code-fold: true
jupyter: python3
---
quarto render fname.qmd
either: