The code extracted from the <code> elements nested in the <code-cell> at start-up.
This is used to set up the editor, prepend setup code to student code, and run tests.
Example
<ck-code-cell> <codeslot="setup"> # This code will be prepended to the student's code before it is run. </code> <codeslot="prompt"> # This code will be shown to the student as a prompt. </code> <codedata-type="solution"> # This code will be shown to the student as a solution. </code> <codedata-type="test"> # This code will be run as a test. </code> </ck-code-cell>
The code extracted from the
<code>elements nested in the<code-cell>at start-up. This is used to set up the editor, prepend setup code to student code, and run tests.Example