-
Notifications
You must be signed in to change notification settings - Fork 240
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
Feature Request: Enable non-R code exercises #213
Comments
I'm going to leave this open as it's a good idea. It's going to be a while as the correct infrastructure is not there. |
@schloerke let's generalize to all of R Markdown's supported engines? Outside of SQL, it would be useful to have Python. |
Hi, @coatless @schloerke should I assume that Python isn't working with learnr at this time? Is there any workaround with e.g. reticulate? If not, I would be interested in getting involved with adding this functionality as it would be extremely helpful for a work project (slash helpful in general!) |
Correct
I would like to use knitr's engine to process the information. R Markdown already has support for python. This would allow for all existing languages that can produce output to work as expected. (Persistent connections, like shiny applications, will not be possible. Only code that evaluates and returns is possible in the current execution model.) Recipe
I'm guessing that (as of writing this comment)
Debugging will be hard with a temp file being created each time. I recommend changing this line to a local working path folder. @zoews For implementation ideas/discussion/troubleshooting, please open a PR. 😄 |
Just leaving my vote: If we had this feature, we would be using learnr all over the organization! |
would love to have following Feature {sql, connection=mydata, exercise = TRUE} |
Just want to throw in my vote for this as well :) |
@nischalshrestha has re-written how exercises are calculated in #390 (just merged to master). Thank you @zoews for getting the conversation started and showing what is possible. Currently, no UI changes have been merged into master from #310. Working on this in #397 If you could test this locally, that would be great! If you run into any issues, please comment on #397, as I will be making followup adjustments there. Thank you! Example polyglot tutorial
Closing as fixed in #390 |
In normal Rmd documents you can specify SQL-only chunks, based on a database connection via DBI:
However, this does not work with
learnr
. I would like to be able to do the same in an exercise so that students can directly submit SQL statements:Where students then would have to enter SQL code into the exercise.
The text was updated successfully, but these errors were encountered: