Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python alternative to R Markdown [closed]

People who work with R are undoubtedly familiar with the R markdown package.

I am a vivid python user and use Mistune for converting markdown to html pages. It also supports code highlighting and mathjax to embed latex formulas in html. However there's one type of functionality missing.

R markdown has the possibility of executing R code inline (and rendering the result to html) or rendering graphs inline. That saves time and makes the documentation maintainable as you don't need to manually prepare the output of that function or manually prepare and save a graph since it's rendered on the fly.

Is there such a possibility or library in python, perhaps in combination with Mistune?

like image 627
Tim Avatar asked Oct 14 '15 06:10

Tim


People also ask

Does Python have something like R Markdown?

Overview. The reticulate package includes a Python engine for R Markdown that enables easy interoperability between Python and R chunks. Python chunks behave very similar to R chunks (including graphical output from matplotlib) and the two languages have full access each other's objects.

Is Jupyter notebook like R Markdown?

Rmarkdown is based on markdown, a human readable markup language, Jupyter notebooks are based on JSON, a data interchange format common on the web. This means that Rmarkdown files can be easily edited using any text editor you like. The same is not true of Jupyter notebooks.

What can R Markdown convert to?

For example, you can convert your . Rmd file into an HTML, PDF, or Microsoft Word file. You can even turn the file into an HTML5 or PDF slideshow. rmarkdown will preserve the text, code results, and formatting contained in your original .


1 Answers

You should really check out ipython notebook (now it's called Jupyter because it supports many languages including R), it can be a little difficult to install for those beginning with Python, so I might also suggest the Anaconda Python Distribution which includes it by default.

allows you to execute code, enter markdown formatted text, display graphs and much much more.

like image 81
iLoveTux Avatar answered Sep 22 '22 15:09

iLoveTux