How to run Skulpt.org on localhost / local server by XAMPP
<p>Hi i want to measure execution time of basic operations like range etc. on Skulpt(Python in browser)
I know thath Skulpt.org have interactive console online, but the thing is that I want to do it on my local machine, on my local server created by XAMPP.</p>

<p>I have this simple code:</p>

<pre><code>import time

t0 = time.time()
for i in range(1000000):
    a = 1
print("assignment.py", time.time()-t0)
</code></pre>

<p>How can I run it on simple webpage index.html on my local server using Skulpt?</p>

<p>Here is answer.</p>

<pre><code>&lt;html&gt; 
&lt;head&gt; 
&lt;meta charset="utf-8"&gt;
&lt;title&gt;Skulpt&lt;/title&gt;
&lt;script src="skulpt.min.js" type="text/javascript"&gt;&lt;/script&gt; 
&lt;script src="skulpt-stdlib.js" type="text/javascript"&gt;&lt;/script&gt; 
&lt;/head&gt; 
&lt;body&gt; 
&lt;/body&gt; 
&lt;/html&gt;
</code></pre>

<p>To folder with index.html you must add 2 files:</p>

<blockquote>
  <p>skulpt.min.js </p>
  
  <p>skulpt-stdlib.js</p>
</blockquote>

python server skulpt