Commit Graph

135 Commits

Author SHA1 Message Date
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
Roman Yurchak
8490b88386 Don't load distutils in the Python standard library (#234) 2022-05-05 19:19:10 -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
woxtu
f92c4c5526 Add type annotations 2022-05-05 21:40:00 +09:00
Fabio Pliger
9334592c50 Merge pull request #203 from woxtu/patch
Fix attributes to set values correctly
2022-05-04 17:28:02 -05:00
woxtu
454934c2cd Set to stderr 2022-05-05 06:12:38 +09:00
woxtu
57a4601bfb Fix typo 2022-05-05 06:06:25 +09:00
Tom
5d7d685a78 fix: fix misspelled logs 2022-05-04 22:12:23 +02:00
Christian Clauss
f4a991fd0a Fix typo 2022-05-04 18:10:10 +02:00
Christian Clauss
c2f4ea7b13 Fix typo 2022-05-04 18:09:23 +02:00
Christian Clauss
4cef872a6a interpreter.ts: Typo functions 2022-05-04 18:07:52 +02:00
Fabio Pliger
9011f86d40 Merge pull request #121 from pyscript/repr_type_fix
Handle __repr__ of types
2022-05-04 10:17:59 -05:00
Fabio Pliger
d8cb5f2968 Merge pull request #130 from pyscript/dedent_code
Fix dedenting of <py-script> code
2022-05-03 11:42:08 -05:00
Fabio Pliger
f957fdaaa6 remove async from method that is not async anymore 2022-05-03 09:18:57 -05:00
Fabio Pliger
f5a6a87328 Merge branch 'main' into quickfix/pyscript_loading_sequence 2022-05-03 09:04:03 -05:00
Fabio Pliger
314be1997a replace using interpreter promise with the interpreter instance itself. Also properly wait for it to be fully initialized before using on the base widget class 2022-05-03 08:54:23 -05:00
Philipp Rudiger
5d6009ecc0 Merge pull request #118 from Mng-dev-ai/remove-unused-imports
remove unused imports
2022-05-03 01:10:01 +02:00
Philipp Rudiger
e62d8db050 Fix dedenting of <py-script> code 2022-05-03 01:01:45 +02:00
Philipp Rudiger
7534b79fd6 Small fix 2022-05-02 19:48:15 +02:00
Philipp Rudiger
4df9a7e06d Fix rendering for simple types 2022-05-02 18:39:28 +02:00
Philipp Rudiger
3457d4313a Handle repr of types 2022-05-02 18:30:33 +02:00
Michael Nagy
e7016aed20 remove unused imports 2022-05-02 13:54:42 +02:00
Robert Myers
44296f85cc Fixing typescript error in build process 2022-05-01 12:45:51 -06:00
Fabio Pliger
4259e085cb bring play icon above repl line 2022-04-29 15:44:58 -06:00
Princiya Sequeira
bed165fb10 play icon in pyrepl vertically centered w.r.to the last line 2022-04-29 20:30:15 +02:00
Fabio Pliger
4e667642ca fixed some minor things related to examples while testing 2022-04-28 16:18:18 -06:00
Fabio Pliger
788af88422 fix enviroment promise loading bug on pyenv 2022-04-28 15:59:35 -06:00
Fabio Pliger
62737bf868 disable lint on specific line 2022-04-28 15:06:50 -06:00
Fabio Pliger
99c79acc78 clean pyscript.ts 2022-04-28 14:09:44 -06:00
Fabio Pliger
ec38f9c151 more cleaning 2022-04-28 14:00:31 -06:00
Fabio Pliger
3f05d33ebc remove unused code in App 2022-04-28 12:12:24 -06:00
Fabio Pliger
cb61908e83 remove old code and bypass some warning 2022-04-28 12:02:35 -06:00
Princiya Sequeira
8b7c397c2a nit fixes 2022-04-28 18:47:39 +02:00
Princiya Sequeira
9f954850a4 play button moved to bottom, lint errors fixed 2022-04-28 00:30:06 +02:00
Princiya Sequeira
971b6903fa fixed linting errors 2022-04-28 00:19:22 +02:00
Princiya Sequeira
0fbf06440f fixed linting errors 2022-04-28 00:17:30 +02:00
Princiya Sequeira
091d109da2 updated styles for repl2, styled the play button 2022-04-27 23:56:10 +02:00
Princiya Sequeira
0ac2d4d339 resolved merge conflicts, fixed linting issues 2022-04-27 12:58:07 +02:00
Princiya Sequeira
2f7d948074 added error class to the errorElement in base.ts 2022-04-27 11:28:15 +02:00
Princiya Sequeira
0d3d64eab9 updated css for the codemirror cm-editor 2022-04-27 11:26:10 +02:00
Philipp Rudiger
2781792073 Loading module from file should not auto-import 2022-04-26 16:02:58 +02:00
Fabio Pliger
d309a6c974 Merge branch 'main' into rb/prettier 2022-04-25 22:03:37 -05:00
Ross Bermudez
27deee3f86 [PYS-12] Format and lint 2022-04-25 15:00:14 +02:00
Philipp Rudiger
3eb41d73ed Handle strings 2022-04-23 00:02:04 +02:00
Philipp Rudiger
4e022e37b4 Cleanup whitespace 2022-04-22 23:50:30 +02:00
Philipp Rudiger
0b6fe08663 Various mime rendering fixes 2022-04-22 23:50:30 +02:00
Philipp Rudiger
b5bfffe912 Abort rendering if no element found 2022-04-22 23:50:30 +02:00
Philipp Rudiger
ec968a6081 Fix typo 2022-04-22 23:50:30 +02:00
Philipp Rudiger
ca92e58c37 Clean up 2022-04-22 23:50:30 +02:00
Philipp Rudiger
97aa4513f7 Add MIME renderer support 2022-04-22 23:50:30 +02:00