HiTMosh, @Riya_Parikh17, my apology if my suggestion implied changing the online course code to get a assignment to work. I only intended to offer a solution to anyone using a local installation of Jupyter to do their assignment 2 off-line and encountering this problem.
I am using a local installation of Anaconda Jupyter to do my assignments so I can create cells to write code to understand what the assignment code is doing and for debugging code outside of a function. Creating cells in the online assignment environment is discouraged. As assignment codes are written inside functions to be able to debug that code require running it outside a function with print statements to see what is happening.
I have previously been advised that running labs and assignments in a local Anaconda or Colab environment may not aways work due to the difference in the versions of Python or library modules. That have been the case in a number of labs and assignments. In one assignment, there was code written for a local environment that was commented out and fix was simply to un-comment that code and comment out the online code.
Updating the Microsoft Visual C++ to the latest version did not resolve the problem and hence I could not load the data. The only solution that I could find was to load the .pickle file using an alternative method.
My suggested solution is for anyone using a local installation of Jupyter to do their assignment as a work around due to the differences between their local environments and the Coursera online environment.
Hi @pasquinit
Are you talking about annotations added to the submitted document itself in the doc viewer, or text comments added using the text box on the righthand side in the Speedgrader? For the text comments, each submission has a "Download submission comments" link. However this involves going to each submission in turn and downloading them one by one, which is obviously not practical when you have a large class. I don't think there is a method to download them in bulk from within the course but you could write some code using the Canvas API that would do it. This requires a bit of programming skill - one of my colleagues created a script that exports comments from a specific assignment as a spreadsheet. Unfortunately he no longer works here so I can't fully explain how his code works but if you look at the documentation for the API it might give you some ideas.
If you have a copy of the API call that produced a spreadsheet for an individual assignment to share, I think that I could probably work on the filter to give me all of the comments for a particular student.
Can we remove the claim of "solved" from this reply? This is a helpful, thoughtful, useful reply but it doesn't not answer the question of how to download the comments posted on assignments. This is still "unsolved" and waiting for a reply from Canvas.
Do you know how to export the output I see in the reminal to a csv file? I got it all to work (thank you!), but I am new to python and linux and scripts. I used the script you shared here: -Forum/Export-assignment-comments-for-course/m-p/176457, more specifically, here: .
That will put double quotes around each item (I think importing into Excel can be set to treat anything between double quotes as a single thing and ignore the commas inside double quotes). Of course, this may still be a problem if your comments include double quotes.
The thing after the ">" is just the name of the file to send the output too and could be anything you want. The default location of the new file will be the folder you're terminal is operating in (probably where the script is located).
Most unix-like systems also have a utility called "tee" that can be used to send the output to a file as well as the screen. I often use this to watch the progress of command as well as to store results in a file. It's used with the "" (pipe) rather than the redirect (the ">"). Something like:
Context: we have the same assignment across multiple terms with different rubrics. For our accreditation data collection, we need to go back through about 30 sections and pull how the students were scored for each element of the particular rubric attached to two different assignments. All this data can be dumped into a spreadsheet which we will then analyze.
I know that Outcomes is the ideal way to do this, but since the assignments were not originally set up this way, I am looking for a more efficient way than having a student worker go through an read each assignment rubric and transfer the scores to a spreadsheet.
I suspect that it's possible to use the Python API (described in my post abore) for this as well, but it may be a little trickier than merely extracting comments was. If you don't feel comfortable trying this (or don't have the time), you may be able to either find a student who has a fair amount of Python programming experience or perhaps someone at your school who does Canvas support. (They may find knowing the Python API to be handy for other needs as well)
I found a code snippet on another thread and have messed with it to get it to spit out rubric ratings & comments as well. Run this on [yourschoolscanvassite]/graphiql -- it's far easier to use & understand than I expected. I'm just going to save the output in one text file per assignment.
Hello, I am trying to complete a college course and everytime I go to put any line of code in to answer my chapter questions, replit says there is an error. I have input about 10 different lines of code now into replit, some of which have to be the correct answers to my chapter quiz questions. I cannot complete any coursework with replit malfuntioning like this. Any suggestions?
That worked perfectly, I feel as though my school is not providing the full code needed to answer their questions. It has not gone over scanners, nor does it include it in asking us to type out the code! I have reached out to the school to see what they recommend, bu thank you for your assistance!
No problem! If you found mine or any other replies helpful, you can mark them as the solution so other people with the same problem can easily find the solution as well, and the topic can eventually close.
When students open their assignment with coding, the frozen lines of code are both clearly indicated and un-editable:
While the above example is in Java, freezing lines of code works with a variety of languages:
I am taking a graduate machine learning course and am working with another student in the class on a final project. In his undergraduate studies, the other student wrote code that accomplished a similar task, and mentioned in our previous meeting that we would be able to leverage much of this code for our current project if we wanted to. I responded that I believe it would constitute textbook cheating and self-plagiarism, but the other student disagrees and believes that re-using the code would not constitute self-plagiarism because he himself wrote it, and it would be redundant to re-write what he had already done.
Now, the course instructors have made it clear that we are not allowed to use any external libraries to perform certain classes of algorithms for this project. This students' prior code would fall under this category of prohibited tools, but he claims that it doesn't qualify because he wrote the code himself (so it is not an "external library"). I believe this is hyperbole, but he disagrees. It is also worth mentioning that this code is licensed under an MIT License, though it is not widely used at all.
It has gotten to the point where I am uncomfortable going forward with the project by re-using his old code, and he does not want to do work on the project that he considers to be redundant. My worry is that if it turns out we're not allowed to reuse the code, then using it could cause us to fail the course and severely negatively affect our reputations. Even if we don't get caught, I personally feel that it would be unethical to copy-paste old code and present it as though it's fresh code for this current project.
I am unsure of how to proceed. I have tried reaching out to the professor of the course some time ago (she has been traveling for some conferences recently and will be for a while) but I have not heard back from her. Additionally, the course TAs have been unwilling to weigh-in on the situation.
What should you do? You should ask the professor politely and without imposing your pre-judgement on whether this is or is not prohibited by the rules of the class. You are not in a position to make this judgement. The only person who can give a definitive ruling is the professor who set the rules.
My teammate has previously created code that would be very applicable to this project. Can we use that code, or does it count as an external library, and we should instead write it again as an exercise?
That way, you get the educational value of building the library, rather than using the pre-existing library, and your partner can push on ahead without either of you being stalled while waiting for the result.
Nor do I think it's an 'external library' by any meaningful sense of the word. For that matter, what are you expecting him to really do - he's already written code to do this, even if he wrote it again from scratch, is he not allowed to refer to other things he's done? I constantly look back at old code (I did this in a clever way sometime last year...). Where do you draw the line - are you allowed to look back at your old code if you can't remember something basic, but know you've done it before?
3a8082e126