-
Notifications
You must be signed in to change notification settings - Fork 69
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
Provide submission export for R notebooks #369
Comments
Per our conversation, just posting some more detail here so you have it. You suggested an interim fix, which is to add an R cell like this to the bottom of the notebook:
I've tested this and this does work on Gradescope. I'll be using this in my class for now. I also tried a version where I put lines 2-4 of the above in a separate .R file to hide some of the ugliness for students. However, that approach does not work on Gradescope, and yields these errors. |
P.S. In the long run, would be nice to have the R notebook submit itself to Gradescope without students having to upload the .zip file manually, which is what I understand the Python notebooks do. |
Implemented |
Implemented required Python functionality in #370 |
@dbroockman I've just merged #370, so the new functionality for export cells with Otter Assign will be included in Otter v3.1.0. The devtools::install_github("ucbds-infra/ottr@1.1.0") ottr::export("notebook.ipynb") As a side note, the Python version does not auto-upload submissions to Gradescope; their API is limited to instructors only, so students can't submit to it. This is a feature we hope to add for all versions of Otter, but can't until that is changed. |
To use this new functionality, do I just add You noted that a "reminder [to save] is also included a couple times in the new export cells w/ v3.1.0" but when I put in a cell with |
Are you using Otter Assign to generate this notebook? Otter Assign is what includes the reminders, not calling |
Yes. I might not be including the export cell right. All I did was include a cell in the source notebook that said I attached an example notebook to this message: https://otter-grader.slack.com/archives/D02DAAAUB6F/p1631160558001400 |
@dbroockman from the notebook you sent me the reason is because you're using Otter Assign v0 format, in which the update to automatically include export cells was not included. Since v0 is an old format, it is no longer under active development. I suggest updating your notebooks to the v1 format if you want to use this feature, or adding the cells which include the reminder manually. Otter v3.1 includes a tool that will convert the notebooks to the new format for you; more details in the docs. |
Provide functionality like
otter.Notebook.export
but for R notebooks.The text was updated successfully, but these errors were encountered: