You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<aclass="assistive" href="#ptx-content">Skip to main content</a><divid="latex-macros" class="hidden-content process-math" style="display:none"><spanclass="process-math">\(
<liid="writing-exercises_advanced-activecode-options-2-1-1"><divclass="para" id="p-derived-writing-exercises_advanced-activecode-options-2-1-1">include <divclass="para" id="writing-exercises_advanced-activecode-options-2-1-1-1-1-2-1">– This option lets you include other activecodes in the current</div>
569
495
</div></li>
570
496
<liid="writing-exercises_advanced-activecode-options-2-1-2"><divclass="para" id="p-derived-writing-exercises_advanced-activecode-options-2-1-2">timelimit <divclass="para" id="writing-exercises_advanced-activecode-options-2-1-2-1-1-2-1">seconds – What to do when students create an infinite loop and lock up their browser? Just wait a bit, every run of Python has a built in time limit of 30 seconds. Some things might take longer than this, so if you know an example or assignment is going to take longer, then you can set a higher time limit with this option.</div>
<spanclass="type">Subsection</span><spanclass="space"></span><spanclass="codenumber">8.1.4</span><spanclass="space"></span><spanclass="title">For languages outside the browser</span>
576
502
</h4>
577
-
<divclass="para logical" id="writing-exercises_for-languages-outside-the-browser-2"><ulclass="disc"id="writing-exercises_for-languages-outside-the-browser-2-1"><liid="writing-exercises_for-languages-outside-the-browser-2-1-1"><divclass="para" id="p-derived-writing-exercises_for-languages-outside-the-browser-2-1-1">language <divclass="para" id="writing-exercises_for-languages-outside-the-browser-2-1-1-1-1-2-1">– As you saw earlier, Runestone supports Java, python2, and python3 in a sandboxed server environment environment.</div>
503
+
<divclass="para logical" id="writing-exercises_for-languages-outside-the-browser-2"><ulclass="disc"><liid="writing-exercises_for-languages-outside-the-browser-2-1-1"><divclass="para" id="p-derived-writing-exercises_for-languages-outside-the-browser-2-1-1">language <divclass="para" id="writing-exercises_for-languages-outside-the-browser-2-1-1-1-1-2-1">– As you saw earlier, Runestone supports Java, python2, and python3 in a sandboxed server environment environment.</div>
578
504
</div></li></ul></div>
579
505
<divclass="para" id="writing-exercises_for-languages-outside-the-browser-3">If you choose any of the above, the code from the window is packaged up and set to a separate server for compilation and execution. There are a few options to activecode that only apply to these languages.</div>
<liid="writing-exercises_for-languages-outside-the-browser-4-1-1"><divclass="para" id="p-derived-writing-exercises_for-languages-outside-the-browser-4-1-1">datafile <divclass="para" id="writing-exercises_for-languages-outside-the-browser-4-1-1-1-1-2-1">You can provide an id to a datafile that will be sent along with your Java code</div>
582
508
</div></li>
583
509
<liid="writing-exercises_for-languages-outside-the-browser-4-1-2"><divclass="para" id="p-derived-writing-exercises_for-languages-outside-the-browser-4-1-2">sourcefile <divclass="para" id="writing-exercises_for-languages-outside-the-browser-4-1-2-1-1-2-1">You can provide additional source files that should be compiled along with the java file you upload.</div>
<divclass="para" id="writing-exercises_pro-tip-test-your-exercises-locally-3">Here is a short video that demonstrates how to install the runestone command in under two minutes.</div>
<divclass="para" id="writing-exercises_pro-tip-test-your-exercises-locally-5">Here are the steps I go through in the video. This assumes you already have python installed on your system.</div>
<codeclass="code-inline tex2jax_ignore">virtualenv runestone</code> - Creates a python virtual environment so you don’t need administrator privileges to install the rest of what you need. If virtualenv is not installed you should do <codeclass="code-inline tex2jax_ignore">pip install virtualenv</code> (Python 2.7.x) or <codeclass="code-inline tex2jax_ignore">python -m venv runestone</code> (Python > 3.5). If the pip command is not found then you should upgrade your version of Python to something newer. All modern version of Python come with pip pre-installed.</div></li>
0 commit comments