import numpy as np
import matplotlib.pyplot as plt
= np.linspace(0, 20, 100)
x
plt.plot(x, np.sin(x)) plt.show()
Python set up with Quarto
Python
Quarto
Use Python with Quarto
Pre-requisite
- Need to enter the virtual environment of your choosing. In RStudio, select the one you need inside Tools -> Global Options -> Python -> Interpreter -> Virtual Environment
- Need
PyYaml
installed in this virtual environment. Try to runpip install pyyaml
inside the virtualenv. - Need to set the engine as such,
---
title: "test python"
format: html
jupyter: python3
---
Afterwards, can try to render
To check what packages are installed, can use pip list
.