Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert Rmd to ipynb with photo #39

Open
lcd1232 opened this issue Mar 7, 2016 · 4 comments
Open

convert Rmd to ipynb with photo #39

lcd1232 opened this issue Mar 7, 2016 · 4 comments

Comments

@lcd1232
Copy link

lcd1232 commented Mar 7, 2016

I have example.Rmd and I use command
notedown example.Rmd --knit > example.ipynb but I have only file with this

{ "cells": [], "metadata": {}, "nbformat": 4, "nbformat_minor": 0 }
What the problem?

@aaren
Copy link
Owner

aaren commented Mar 7, 2016

Thanks. I should be able to look into this next week. In the meantime, check your r installation - can you use knitr from the r console?

@lcd1232
Copy link
Author

lcd1232 commented Mar 7, 2016

yes. I found interesting thing:
Windows
If i wrote notedown example.Rmd --knit > example.ipynb it doesn't work.
But if i wrote notedown example.Rmd --rmagic --run > example.ipynb it works perfectly.
But if i wrote notedown example.Rmd --knit --rmagic --run > example.ipynb it doesn't work.
Ubuntu
notedown example.Rmd --knit --rmagic --run > example.ipynb works perfectly too.

@aaren
Copy link
Owner

aaren commented Mar 7, 2016

  1. Does notedown example.Rmd --knit > example.ipynb work on Ubuntu?
  2. Have you definitely got knitr installed on windows?

--rmagic --run uses rpy2 rather than knitr, which might be why it is working. Also, there might be some other windows problem - likely as I don't test on it.

@lcd1232
Copy link
Author

lcd1232 commented Mar 7, 2016

lcd1232@ubuntu:~/Documents/Markdown$ notedown example.Rmd --knit > test.ipynb
/usr/local/lib/python3.4/dist-packages/IPython/html.py:14: ShimWarning: The `IPython.html` package has been deprecated. You should import from `notebook` instead. `IPython.html.widgets` has moved to `ipywidgets`.
  "`IPython.html.widgets` has moved to `ipywidgets`.", ShimWarning)

and create this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants