R-markdown .Rmd or knitr markdown in Jupyter - knitr

Is there a way to use .Rmd files directly in Jupyter? In other words, is there a way to get jupyter to render a file like this: https://github.com/yihui/knitr-examples/blob/master/023-engine-python.Rmd?
I love jupyter, but also like the simplicity of the .Rmd syntax.

You could use ipymd, which enables saving notebooks as Markdown documents instead of in Jupyter Notebook format. I don't know enough about knitr to say if there is feature-by-feature compatibility, but it seems like a good start.
Notedown is another possibility.

I created a fork of ipymd which allows to open .Rmd files directly in jupyter notebook.
As opposed to plain markdown, it also supports storing images in a separate .nb.html file.

Related

Is there any way of scrubbing notebooks pre-save?

I work with sensitive data and need my notebook to scrub the outputs of cells before saving. I know that this is possible in Jupyter notebooks, but is this also possible in VScode Jupyter?
Here's the link to the example in the Jupyter docs, where a scrub_output_pre_save function is written and inserted into the jupyter_notebook_config.py-file.
Thanks!

What is the best way to turn IPython Notebooks on Github to a blog?

I've some IPython notebooks which I maintain at GitHub. I would like to turn them into a blog. I would like to have a discussion area at the end of the notebooks so that readers can comment. I do not want users to be able to execute the codes directly on the site (it is enough if they can see the notebooks), if they want to execute, they can copy the codes and run on their own computers. If possible I do not want a separate copy of the notebooks, I would like to have a single copy for ease of maintenance. What is the best way (preferably a free way) to achieve this?
Thanks
Hamel Husain recently posted to the Jupyter discourse forum a very full-featured Jupyter blogging system hosted on GitHub Pages called fastpages. It seems well documented and state-of-the-art. It allows a comments section, see here.
It seems you want to export a static version of the notebooks? You can use a tool like nbconvert which according to its documentation:
allows you to convert a Jupyter .ipynb notebook document file into another static format including HTML, LaTeX, PDF, Markdown, reStructuredText, and more. nbconvert can also add productivity to your workflow when used to execute notebooks programmatically.
You can export in your desired format and add the remaining markup for commenting or other functionality.

Convert iPython Notebook to copy-proof format (e.g. png)

I have a rather long iPython Notebook that I want my students to reproduce in class. I don't just want to give them a pdf or notebook file as they would just copy the text, which defeats the purpose...
Is there a way for me to convert the notebook into a huge png, or copy protected format (e.g. with right click forbidden)?
You can just make a fullsize screenshot of the notebook in the browser.
For Chrome it is possible with extensions or with builtin developer tools. Guide
Newer Firefox versions has it here

Easy way to view doxygen commented file?

I have one source file which describes interface of a class with many doxygen comments.
Maybe with doxygen it can be generated to a html that can be easily read and with handly cross-references, but I don't want to install a huge doxygen to my system just for viewing this file (in my Ubuntu it seems doxygen requires ~1GB disk space!).
Is there any quick/simple way to view doxygen commented file?
I suggest to try the Linux binaries (or sources) from the official doxygen site (http://www.doxygen.org/download.html#srcbin). Then you are done with only 11.1MB of download (and maybe 50MB of disk space).
Ubuntu seems to make doxygen depend on all possible packages (including LaTeX) but these are mostly optional, and not needed for HTML output...
If your using the Emacs text editor, you can install the highlight-doxygen package, it will highlight doxygen comments to that they will become much easier to read.
If you have the doxygen within the package, you still don't get something you can look at.
The answer to the question I had when I got here was to run
doxygen -g
and then
doxygen
to produce html files in the html directory. The first produces the configName (default) and the second produces the html using the (default) cofiguration file.

Emacs SSIS "mode"?

I don't like SSIS graphics interface.
Is it possible to program Emacs so that I can create SSIS packages from Emacs?
If yes, where should I start?
The SSIS fileformat is just xml files so you could in theory edit the files directly and use one of the emacs XML modes. That said the files are pretty complex and I think it would be much more trouble than it's worth.
Shame as I'd also like to be able to create SSIS packages in plain text.
I don't know the SSIS format, but someone else said it was XML.
You can edit XML within emacs using an XML mode. SGML mode is builtin and works fine. There are other XML modes.
If you want schema-specific editing, you can do that too, except it requires you to jump through some hoops. See
Schema-sensitive editing in emacs, based on W3C XML Schema?