nbgrader icon indicating copy to clipboard operation
nbgrader copied to clipboard

Can implementation and tests be on the same cell?

Open sahinakkaya opened this issue 3 years ago • 1 comments

I'm trying to use nbgrader with a C kernel. Unfortunately, it has some limitations. It compiles whole cell as a single program, meaning that I can't split my work into multiple cells. Each cell has its own program. Is there a way to write both implementation and tests to the same cell?

sahinakkaya avatar Jun 16 '21 16:06 sahinakkaya

I realized that this would be a bad idea because the cell which contains tests should be read-only. So I can't mix them but I wonder if there is anything I can do as a workaround.

sahinakkaya avatar Jun 16 '21 19:06 sahinakkaya