- Put your
.ipynb
file into ipynb folder - Go to assets folder
- Open and run all code on
jupyter.R
. Make sure that there's no errors when you're running the code. - Open and run all code on
converter.R
. Make sure that there's no errors when you're running the code. - After successfully running the code, converted
.ipynb
files automatically will be in Rmd folder with.Rmd
extension - Do some setting inside your .Rmd file to ensure the code be able to connect with your python environment. Here below simple setting you can do :
Sys.setenv(RETICULATE_PYTHON = "C:/<your-anaconda-path>/envs/<your-env-name>/python.exe")
library(reticulate)
py_run_string("import os")
py_run_string("os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = 'C:<your-anaconda-path>/Library/plugins/platforms'")
- Run all the code by knitting into HTML file
- All done and good luck!~