-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
126 lines (111 loc) · 6.93 KB
/
index.html
File metadata and controls
126 lines (111 loc) · 6.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!doctype html>
<html lang="en" class="">
<head>
<link rel="apple-touch-icon" sizes="57x57" href="/images/favicon.ico/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/images/favicon.ico/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/images/favicon.ico/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/images/favicon.ico/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/images/favicon.ico/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/images/favicon.ico/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/images/favicon.ico/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/images/favicon.ico/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/images/favicon.ico/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/images/favicon.ico/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon.ico/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/images/favicon.ico/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon.ico/favicon-16x16.png">
<link rel="manifest" href="/images/favicon.ico/manifest.json">
<link rel="stylesheet" type="text/css" href="/style/bulma.min.css">
<link rel="stylesheet" type="text/css" href="/style/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="/style/common.css">
<link rel="stylesheet" type="text/css" href="/style/highlightjs/atom-one-light.css">
<script src="/script/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<title>Pythonpad.js</title>
</head>
<body>
<nav class="navbar has-background-grey-lighter" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<img src="/images/brand_black.png" class="u-nav-brand">
</a>
</div>
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="/">Home</a>
<a class="navbar-item" href="/docs/examples.html">Examples</a>
<a class="navbar-item" href="/docs/manual.html">Manual</a>
<a class="navbar-item" href="/docs/sandbox.html">Sandbox</a>
<a class="navbar-item" href="https://github.com/pythonpad/pythonpad.js">Download</a>
</div>
</div>
</nav>
<div class="u-narrow-container">
<div class="u-padded">
<div class="content">
<p>
<b>Pythonpad</b> is a programming environment for tiny Python 3 projects, that can be embedded in web pages.
It runs users' Python code with <a href="https://brython.info">Brython</a> on the web browser,
therefore no server-side app is needed to run code in Pythonpad.
</p>
<p>
It is designed for serving hands-on exercise problems in online introductory programming classes, and comes with a number of
educational libraries that can help students learning how to program for the first time. <br />
<!-- Pythonpad supports <i>cs1robots</i>, <i>cs1media</i>, and <i>cs1graphics</i> modules that attempt to mimic the modules with the same name
in <a href="https://github.com/otfried/cs101" target="_blank">cs101</a> project by
<a href="https://github.com/otfried" target="_blank">Otfried Cheong</a>. -->
</p>
<p>
Pythonpad also supports auto-grading with Python-based grading scripts to give instant feedback to your students.
Our in-memory file system allows you to easily investigate the student code as a file from your grader code in a natural, pythonic way.
</p>
<hr />
<div class="u-v-padded">
<b>This is Pythonpad.</b>
</div>
<div class="u-v-padded">
<iframe src="/pad.html?p=robot-intro" class="u-pad-frame" frameborder="0"></iframe>
</div>
<hr />
<p>
Pythonpad is a Vue.js component, but we provide a wrapper module that requires no knowledge about Vue.js to use Pythonpad.
<b>The easiest way</b> to use Pythonpad is to simply load the script found under <code>lib/</code> in the distribution,
after loading the font-awesome 4.7 stylesheet and the Vue.js script.<br />
For example:
</p>
<pre><code class="html"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css"><br /><script src="https://cdn.jsdelivr.net/npm/vue@2.6.11"></script><br /><script src="https://cdn.jsdelivr.net/gh/pythonpad/pythonpad.js@v0.1.37/lib/pythonpad.bundle.js"></script></code></pre>
<p>
When you have loaded the scripts like this, a Pythonpad programming environment can be rendered like this:
</p>
<pre><code class="html"><div id="pad"></div><br /><script>Pythonpad('pad', {src:'print("hello world")'})</script></code></pre>
<p>
This will initialize the programming environment with a piece of code already in it,
and allow users to save the environment in their web browser using the <code>localStorage</code> object.
</p>
<p>
Check out our super-simple example on CodePen.
<div class="buttons">
<a class="button" href="https://codepen.io/pythonpadco/pen/Vwaarey" target="_blank">
<span class="icon">
<i class="fa fa-codepen"></i>
</span>
<span>How to use Pythonpad</span>
</a>
</div>
</p>
<hr />
<p>
Go see more examples to see what else Pythonpad can do,
or read the manual to learn how to customize the Pythonpad instance in your website.
</p>
<p>
<div class="buttons">
<a class="button" href="/docs/examples.html">See more examples</a>
<a class="button" href="/docs/manual.html">Read the manual</a>
</div>
</p>
</div>
</div>
</div>
</body>
</html>