Mixing R and Python in the same Jupyter Notebook and finding Python code within an RMarkdown document
Spencer Graves
spencer.graves at effectivedefense.org
Fri Nov 2 19:17:05 EDT 2018
Hello, All:
Two questions:
1. Is it feasible to mix R and Python code in the same
Jupyter notebook? If yes, can you please point me to an example?
2. How can one find Python code from within and R Markdown
document?
** "https://github.com/sbgraves237/radioMonitor"
includes "radioMonitor-init2018-10-11.Rmd" that shows it's possible to
mix R and Python snippets in the same R Markdown (*.Rmd) document.
However, "radioMonitor0_1.Rmd" calls 'system("py idle0_1.py")' in an R
snippet, which does what I want (namely recording 5 seconds of whatever
is connected to "audio in" or something similar on your computer and
writing it to "KKFI2018-10-12t13_16-5sec.wav".
Thanks,
Spencer Graves
More information about the Python-list
mailing list