我希望将 python 代码集成到 ar notebook(甚至是 rmarkdown 文档)中。我能够使用 Python 代码块运行 Python:
```{python}
```
Run Code Online (Sandbox Code Playgroud)
但是我无法导入包(例如熊猫)。我安装了 anaconda,其中安装了 Pandas,但是我无法导入它。任何人都可以指导我如何通过 knitr 将包导入 r,最好使用 anaconda?
{python, engine.path="/path/to/your/anaconda3/bin/python"}
Run Code Online (Sandbox Code Playgroud)