Quarto基础

安装

  • 下载安装包

下载网页:https://quarto.org/docs/get-started/

  • 在终端安装
sudo dpkg -i quarto-1.4.547-linux-amd64.deb

学习资料

quarto cli常用命令

实时预览

–host指定为0.0.0.0,并且防火墙打开8055端口,打开www.mmphcrc.com:8055即可实时浏览,有改动时即刻自动更新至网页。

quarto preview 博士开题汇报.ipynb --host 0.0.0.0 --port 8055

在终端通过Ctrl+C即可停止Preview。

如果不小心关了终端,可以通过以下命令查看进程,通过kill <PID>结束进程。

lsof -i :8055

This works but I am not using the JSON: The mean is r Sys.Date()

行内代码

官网介绍:https://quarto.org/docs/computations/inline-code.html

  • jupyterlab文件需要额外设置
execute:
  enabled: true
  • 文本中写法:

The radius of the circle is {python} x

注意:行内代码的变量必须是已经计算好的。