Grading Python code and Jupyter Notebooks automatically
February 4, 2021

Webinar: How to automatically grade Python and Jupyter Notebook assignments

Watch our webinar on Python and Jupyter Notebook autograding on demand now! This webinar was part of our monthly focus group series and took place on January 29th of 2021.

Creating an automatically graded Python assignment

In the first part of this webinar, we guide you through all the steps needed to set up an autograded Python assignment in CodeGrade. First, we create some simple I/O (Input / Output) tests to check the functionality of the student submission. Afterwards, we add a Code Quality test to automatically check the style of the student code for the PEP8 styleguide, for this we use the linter Flake8. Finally, we finish our AutoTest with adding some unit tests to autograde the functions our students create, for this we use Pytest, which CodeGrade slightly transformed for education and ease of use.

In our example, we grade Python code that uses Numpy. Of course, you can also grade Python code that uses other libraries like matplotlib, pandas or SciPy, these can be easily installed in the CodeGrade autograder.

Some other best practices shared in our focus group are:

Save time by autograding your Python and Jupyter Notebook assignments now!

Continue reading

Snowball Miracle: A Terminal, a Smarter AI Assistant, and Tighter Exam Controls

CodeGrade released Snowball Miracle on 21 August 2026. A terminal with tabs, an AI assistant that reads AutoTest results, tighter exam controls, API changes.

Watch Now! CodeGrade Back to School Webinar

Watch the recap of our Back to School webinar. See the new built-in Terminal and redesigned code editor, learn how to set up your first autograded assignment on CodeGrade Free, and get a look at the latest features.

What we recommend for teaching intro to programming in 2026

Planning an intro programming course in 2026? Here is the teaching stack we recommend: editor, autograder, plagiarism, AI policy. Start free up to 50 students.

Sign up to our newsletter