File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 3
3
* Brython was designed for replacing JavaScript with Python.
4
4
* This tutorial will show you how to get started quickly.
5
5
6
- ### 0. Install `` brython `` :
6
+ ### Here's the web app you'll be creating:
7
+
8
+ <img src =" https://seleniumbase.io/cdn/img/brython_demo.png " alt =" Brython Demo " title =" Brython Demo " width =" 410 " />
7
9
8
- < i >(Note: SeleniumBase no longer includes `` brython `` as part of installed dependencies.)</ i >
10
+ ### 0. Install `` brython `` :
9
11
10
12
``` bash
11
13
pip install brython
@@ -18,6 +20,7 @@ pip install brython
18
20
``` bash
19
21
python -m http.server
20
22
```
23
+
21
24
You can always stop the server by using `` CTRL+C `` .
22
25
23
26
### 2. Navigate to [ http://localhost:8000/ ] ( http://localhost:8000/ )
Original file line number Diff line number Diff line change 21
21
padding : 8px ;
22
22
}
23
23
</ style >
24
- < script type ="text/javascript " src ="https://cdnjs.cloudflare.com/ajax/libs/brython/3.9.2 /brython.js "> </ script >
24
+ < script type ="text/javascript " src ="https://cdnjs.cloudflare.com/ajax/libs/brython/3.10.4 /brython.js "> </ script >
25
25
</ head >
26
26
< body onload ="brython() ">
27
27
< table >
Original file line number Diff line number Diff line change 21
21
padding : 4px ;
22
22
}
23
23
</ style >
24
- < script type ="text/javascript " src ="https://cdnjs.cloudflare.com/ajax/libs/brython/3.9.2 /brython.js "> </ script >
24
+ < script type ="text/javascript " src ="https://cdnjs.cloudflare.com/ajax/libs/brython/3.10.4 /brython.js "> </ script >
25
25
</ head >
26
26
< body onload ="brython(1) ">
27
27
< script id ="ascript " type ="text/python ">
You can’t perform that action at this time.
0 commit comments