33 * License: MS-RSL – see LICENSE.md for details
44 */
55
6+ import { Card , InputNumber , Radio } from "antd" ;
7+
68import { Checkbox } from "@cocalc/frontend/antd-bootstrap" ;
79import {
810 CSS ,
@@ -11,9 +13,8 @@ import {
1113 useRedux ,
1214} from "@cocalc/frontend/app-framework" ;
1315import { A , Icon } from "@cocalc/frontend/components" ;
14- import { InputNumber } from "antd" ;
1516import { SelectProject } from "@cocalc/frontend/projects/select-project" ;
16- import { Card , Radio } from "antd" ;
17+
1718import { CourseActions } from "../actions" ;
1819import {
1920 NBGRADER_CELL_TIMEOUT_MS ,
@@ -26,7 +27,7 @@ const radioStyle: CSS = {
2627 display : "block" ,
2728 whiteSpace : "normal" ,
2829 fontWeight : "inherit" ,
29- } ;
30+ } as const ;
3031
3132interface Props {
3233 name : string ;
@@ -106,7 +107,7 @@ export function Nbgrader({ name }: Props) {
106107 You can create a new project dedicated to running nbgrader, upgrade or
107108 license it appropriately, and copy any files to it that student work
108109 depends on. This new project will be shared will all collaborators of
109- this instructorproject .
110+ this instructor project .
110111 < br />
111112 You can also grade all student work in the student's own project, which
112113 is good because the code runs in the same environment as the student
@@ -126,7 +127,7 @@ export function Nbgrader({ name }: Props) {
126127 } }
127128 >
128129 < h6 >
129- Nbgrader hidden tests:{ " " }
130+ nbgrader hidden tests:{ " " }
130131 { settings ?. get ( "nbgrader_include_hidden_tests" )
131132 ? "Included"
132133 : "NOT included" }
@@ -163,7 +164,7 @@ export function Nbgrader({ name }: Props) {
163164 borderRadius : "5px" ,
164165 } }
165166 >
166- < h6 > Nbgrader timeouts: { timeout } seconds</ h6 >
167+ < h6 > nbgrader timeouts: { timeout } seconds</ h6 >
167168 < i > Grading timeout in seconds:</ i > if grading a student notebook takes
168169 longer than < i > { timeout } seconds</ i > , then it is terminated with a
169170 timeout error.
@@ -213,7 +214,7 @@ export function Nbgrader({ name }: Props) {
213214 borderRadius : "5px" ,
214215 } }
215216 >
216- < h6 > Nbgrader output limits: { Math . round ( max_output / 1000 ) } KB</ h6 >
217+ < h6 > nbgrader output limits: { Math . round ( max_output / 1000 ) } KB</ h6 >
217218 < i > Max output:</ i > if total output from all cells exceeds{ " " }
218219 { Math . round ( max_output / 1000 ) } KB, then further output is truncated.
219220 < InputNumber
@@ -258,7 +259,7 @@ export function Nbgrader({ name }: Props) {
258259 } }
259260 >
260261 < h6 >
261- Nbgrader parallel limit:{ " " }
262+ nbgrader parallel limit:{ " " }
262263 { parallel > 1
263264 ? `grade ${ parallel } students at once`
264265 : "one student a time" }
@@ -282,9 +283,10 @@ export function Nbgrader({ name }: Props) {
282283 return (
283284 < Card
284285 title = {
285- < A href = "https://doc.cocalc.com/teaching-nbgrader.html" >
286- < Icon name = "graduation-cap" /> Nbgrader
287- </ A >
286+ < >
287+ < Icon name = "graduation-cap" /> nbgrader (
288+ < A href = "https://doc.cocalc.com/teaching-nbgrader.html" > Docs</ A > )
289+ </ >
288290 }
289291 >
290292 { render_grade_project ( ) }
0 commit comments