Commit Graph

137 Commits

Author SHA1 Message Date
Fabio Pliger
0476627f34 fix autogenerated element (#397)
* use static string in checkId to simplify behaviour and ensure ids always start with alpha char

* re-enable terser on minify

* fix example local path
2022-05-16 16:08:28 -05:00
Javadz
ca909b4f6b Create readme.md (#374) 2022-05-16 11:13:39 -05:00
Fabio Pliger
74d29bca8c fix paths to pyscript.net (#366) 2022-05-13 18:40:11 -05:00
Peter W
1fdec1ca21 redirect examples (#365) 2022-05-13 18:24:29 -05:00
NiJia Lin
a3e86f32b7 Update say_hello.html (#327)
- remove un-usage `setTimeout` package
2022-05-11 20:39:22 -05:00
Fabio Pliger
363f3751f9 support different pyodide versions (#328)
* add PyLoader class

* create global loader during app creation time and remove it when pyscript loading operations are done

* make the loader global and open/close when apps is starting. Also add concept of app config so users can set if they want to autoclose the loader of handle it themselves

* add pyconfig file

* auto add global config if there's no config set in the page

* export initializer type

* define type for config

* move initialization out of svelte file, into app config

* change runtimes from strings to objects

* fix typo
2022-05-11 16:59:13 -05:00
Fabio Pliger
71319d0969 add app loading splash screen and AppConfig (#279)
* add PyLoader class

* create global loader during app creation time and remove it when pyscript loading operations are done

* make the loader global and open/close when apps is starting. Also add concept of app config so users can set if they want to autoclose the loader of handle it themselves

* add pyconfig file

* auto add global config if there's no config set in the page

* remove changes to simple_clock example
2022-05-10 16:00:25 -05:00
Peter W
5f19756ff3 fix ci issues (#312)
* test ci

* sync fixes, ignore symlink

* remove symlink

* undo trigger tests

* only deploy latest on merge, not PR

* quotes to single
2022-05-10 12:27:06 -05:00
Christian Clauss
4ec24a919a Remove execute bit from .css and .html files (#274)
* Remove execute bit from .css and .html files

* pyscriptjs/examples/toga/static/pyscript: Broken symlink
2022-05-07 09:27:31 -05:00
Christian Clauss
fadb4a67e7 pre-commit: Add codespell and other checks (#263) 2022-05-06 16:23:14 -05:00
Matt Kramer
cc6d6247a8 Add additional pre-commit hooks (#245)
* Add and run end-of-file-fixer
* Add and run trailing-whitespace
* Add and run check-yaml
* Add and run check-json
* Add and run pretty-format-yaml
* Fix comment indentation
2022-05-06 14:27:11 -05:00
Jason Barnwell
707474e835 Changed variable names to snake_case for PEP8 formatting (#211)
* Changed variable names to snakecase for PEP8 formatting.

* Changed variable names to snakecase for PEP8 formatting.

* fix indentation

Co-authored-by: Fabio Pliger <fabio.pliger@gmail.com>
2022-05-06 12:18:08 -05:00
Allan Lago
facdfdb525 Add keypress event to todo example (#241)
* add enter keypress event in todo example

* fix linting

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-06 12:08:58 -05:00
Fabio Pliger
b7d748c96a Moves Python code out of interpreter file (#207)
* make copy of .py files part of build process

* move code out ofinterpreter file and make it download and load code during initialization

* fix double ; in interpreter

* remove debugging print

* update dependencies

* fix project name and version

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* lint

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* change fmt-py

* lint

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* remove extra content

* define missing strict type

* create build folder if doesn't exist

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-05 23:12:54 -05:00
Matt Kramer
88a0dd38de Use black profile in isort to prevent conflicts (#244)
* Use black profile in isort to prevent conflicts
2022-05-05 22:15:43 -05:00
Maxime Liquet
b5b150a918 add links to the libraries used in the examples (#224) 2022-05-05 20:28:57 -05:00
Furkan M. Torun
204c099a84 ADD: Simple Bioinformatics Tool (#131)
* ADD: Simple Bioinformatics Tool as an example

* ADD: Favicon to Bioinformatics Example
2022-05-05 16:47:30 -05:00
matdmiller
f4ed3591ca Micrograd example (#116)
* added micrograd_ai.html and micrograd_ai.py to examples

* added micrograd_ai.html and micrograd_ai.py to examples fix typo
2022-05-05 16:44:14 -05:00
Peter W
6f6efa4525 add config file for pre-commit (#235)
* add config file

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add isort

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-05 15:12:25 -05:00
Fabio Pliger
6ea96271a4 Merge pull request #192 from cclauss/patch-2
interpreter.ts: Typo functions
2022-05-04 14:05:13 -05:00
Fabio Pliger
48ff01279b Merge pull request #190 from zjhch123/patch-1
Update todo-pylist.html
2022-05-04 14:02:38 -05:00
Christian Clauss
a6a0933c6c Fix typo 2022-05-04 18:20:33 +02:00
Yida Zhang
c2305c8a66 Update todo-pylist.html 2022-05-04 22:47:23 +08:00
Sreecharan
d503731a0b fix: typo 2022-05-04 19:42:06 +05:30
Sreecharan
7524d5662b fix: typo 2022-05-04 19:39:44 +05:30
Fabio Pliger
f5a6a87328 Merge branch 'main' into quickfix/pyscript_loading_sequence 2022-05-03 09:04:03 -05:00
Fabio Pliger
ede0adac81 fix some examples 2022-05-03 08:54:36 -05:00
Fabio Pliger
f04ef581e1 Merge pull request #88 from sudomaze/fix_absolute_path_examples
Fix absolute path when import `.py` files in examples
2022-05-02 19:29:17 -05:00
Philipp Rudiger
4de2a309a4 Merge pull request #119 from santiago-paz/main
CSS property type
2022-05-03 01:25:28 +02:00
Brett Cannon
11b690c051 Fix capitalization 2022-05-02 14:00:34 -07:00
Santiago Paz
0f76a88f63 CSS property type 2022-05-02 11:45:30 -03:00
sudomaze
2dbafe8870 update to be relative to current directory 2022-05-01 23:13:26 -07:00
Fabio Pliger
b867371fac Merge pull request #93 from Mng-dev-ai/add-classname-dynmaically-in-examples
add classname dynamically in examples
2022-05-02 01:02:00 -05:00
Fabio Pliger
5eeb4e39a0 Merge pull request #74 from ericmjl/example/message-passing
Providing an example for message passing + interactive REPL
2022-05-01 11:14:41 -05:00
Michael Nagy
17bdc775ce add classname dynmaically in examples 2022-05-01 17:04:41 +02:00
sudomaze
f82d032dd0 Fix aboluste path when import .py in examples
This PR is for [this issue](#87).
2022-05-01 03:06:38 -07:00
Eric Ma
7dcc73af8f Providing an example for message passing + interactive REPL 2022-04-30 22:33:43 +00:00
Mateusz Paprocki
d939e5ad15 Improvements to numpy_canvas_fractals example 2022-04-29 23:36:44 +02:00
Fabio Pliger
4e667642ca fixed some minor things related to examples while testing 2022-04-28 16:18:18 -06:00
Fabio Pliger
e8d106722d Merge pull request #58 from pyscript/antocuni/reorder-demos
Improve and reorder the demo page
2022-04-28 16:11:08 -05:00
Princiya Marina Sequeira
b207db97c2 Merge pull request #45 from pyscript/css-repl
Css for Repl
2022-04-28 19:03:46 +02:00
Princiya Sequeira
8b7c397c2a nit fixes 2022-04-28 18:47:39 +02:00
Antonio Cuni
1d64381421 add MIME rendering examples 2022-04-28 17:27:16 +02:00
Antonio Cuni
ad118eeb8e Refactor the demo page
1. Rename simple script into hello world
2. Rename simple script 2 into simple clock
3. Group demos into categories, starting with simple examples towards more complex ones
2022-04-28 17:19:09 +02:00
Princiya Sequeira
091d109da2 updated styles for repl2, styled the play button 2022-04-27 23:56:10 +02:00
Fabio Pliger
631eb8170e Merge pull request #53 from pyscript/antocuni/fix-repl
add some basic instructions for how to use the REPL
2022-04-27 14:59:52 -05:00
Philipp Rudiger
4d2e740d49 Merge pull request #54 from pyscript/panel_demo_styling
Consistent styling for panel demos
2022-04-27 18:26:40 +02:00
Philipp Rudiger
31c5e1d59a Consistent styling for panel demos 2022-04-27 12:41:43 +02:00
Antonio Cuni
cf84e0c4dd add some basic instructions for how to use the REPL 2022-04-27 11:46:36 +02:00
Antonio Cuni
ec19bfe47a fix indentation error, and clarify the purpose of the demo 2022-04-27 10:07:59 +02:00