Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add ipython #1110

Open
wants to merge 69 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
aa09f15
Create draft PR for #936
create-issue-branch[bot] Feb 27, 2024
8814cae
default to pyodide and switch to skulpt if needed
loiswells97 Feb 27, 2024
1f0e5d0
attempt to parse imports in the runnerfactory
loiswells97 Feb 27, 2024
12bdce4
refactoring
loiswells97 Feb 28, 2024
f0ba6c3
tidying for linter
loiswells97 Feb 28, 2024
825961e
tidying to clarify approach in pr
loiswells97 Feb 28, 2024
e4354ed
refactoring to fix things
loiswells97 Feb 28, 2024
534871c
tidying
loiswells97 Feb 28, 2024
fb17e4d
tidying
loiswells97 Feb 29, 2024
7a3a74c
Merge branch 'main' into issues/936-Spike_Investigate_using_pyodide_d…
loiswells97 Feb 29, 2024
e69126c
Merge branch 'main' into issues/936-Spike_Investigate_using_pyodide_d…
loiswells97 Feb 29, 2024
edabb66
Merge branch 'main' into issues/936-Spike_Investigate_using_pyodide_d…
loiswells97 Feb 29, 2024
ff0587f
fixing shikm assets
loiswells97 Apr 4, 2024
73ae099
Merge branch 'main' into issues/936-Spike_Investigate_using_pyodide_d…
loiswells97 Apr 4, 2024
beaad38
initial attempt at explaining incompatible modules
loiswells97 Apr 4, 2024
901cd1d
Fixing snapshot and skulptrunner tests
loiswells97 Apr 4, 2024
88ce726
fixing pyodiderunner tests
loiswells97 Apr 4, 2024
ea622af
fixing py5 imported mode
loiswells97 Apr 4, 2024
95b85ab
fixing cypress tests
loiswells97 Apr 4, 2024
ef868e0
updating snapshot
loiswells97 Apr 4, 2024
f9d8b67
fixing linting warning
loiswells97 Apr 5, 2024
610f6ad
updating changelog
loiswells97 Apr 5, 2024
e399def
fixing the input function
loiswells97 Apr 5, 2024
797a559
trying to fix cypress
loiswells97 Apr 5, 2024
691f9fb
patching pygal tooltip formatter
loiswells97 Apr 8, 2024
b1683fe
couple of regex patches to eliminate some edge cases
loiswells97 Apr 8, 2024
f76ea51
tidying
loiswells97 Apr 8, 2024
fdc914d
moving pyodiderunner back for now to avoid conflicts
loiswells97 Apr 8, 2024
52c4067
Merge branch 'main' into issues/936-Spike_Investigate_using_pyodide_d…
loiswells97 Apr 8, 2024
1b82f42
tidying
loiswells97 Apr 8, 2024
68d85dc
changing and fixing tests
loiswells97 Apr 9, 2024
41594e6
fixing more tests
loiswells97 Apr 9, 2024
a571b06
fix mission zero tests
loiswells97 Apr 9, 2024
ce79754
testing pythonrunner switching which runner is active
loiswells97 Apr 9, 2024
70d1eea
updating snapshot
loiswells97 Apr 9, 2024
e53a055
tweaking and testing skulpt and pyodide runner visibilities
loiswells97 Apr 9, 2024
868ab31
tweaking incompatibility error message explanation
loiswells97 Apr 9, 2024
d2fcfc3
fix one of the mission zero cypress tests
loiswells97 Apr 10, 2024
a73fcad
update error explanation copy
loiswells97 Apr 10, 2024
bdb30a1
switching turtle to skulpt and forcing skulpt if sense hat always ena…
loiswells97 Apr 10, 2024
5d43c1a
update error explanation to include turtle
loiswells97 Apr 10, 2024
8e8bdc9
updating snapshot
loiswells97 Apr 10, 2024
e45e8e3
switching mission zero cypress port
loiswells97 Apr 10, 2024
d9b38f3
Merge branch 'pyodide-migration' into issues/936-Spike_Investigate_us…
sra405 Apr 29, 2024
73981ea
Merge pull request #937 from RaspberryPiFoundation/issues/936-Spike_I…
sra405 May 31, 2024
410b3d2
Merge branch 'main' into pyodide-migration
sra405 May 31, 2024
d93fd44
renaming and moving files temporarily to try and simplify the merge c…
loiswells97 Oct 1, 2024
8512211
Merge branch 'main' into pyodide-migration
loiswells97 Oct 1, 2024
09a9c60
reverting and fixing a few things post merge
loiswells97 Oct 1, 2024
cf403ca
some test fixing
loiswells97 Oct 1, 2024
3a50dc3
trying to fix cypress tests
loiswells97 Oct 3, 2024
34fed91
remove lingering only from cypress tests
loiswells97 Oct 3, 2024
efd0544
be more defensive looping over project components
loiswells97 Oct 3, 2024
19be64a
Matplotlib support (#1087)
loiswells97 Oct 8, 2024
17dfe0a
Fix dynamic pyodide switching with multiple files (#1097)
create-issue-branch[bot] Oct 9, 2024
41ef481
Web component pyodide support (#1090)
loiswells97 Oct 10, 2024
e582b65
Bump pyodide to latest version (#1098)
create-issue-branch[bot] Oct 11, 2024
a28999d
feat(pocs): initial trials and getting the wc working on 3011 and 301…
sra405 Oct 15, 2024
b32205f
Webpack v5 bump (#1096)
loiswells97 Oct 15, 2024
75878f1
Merge branch 'pyodide-migration' into pyodide-headers-webpack-4
sra405 Oct 15, 2024
de5068d
working PyodideWorker
sra405 Oct 15, 2024
60c9c3f
refactor(pyodide-libraries): restructure `public` directory to ensure…
sra405 Oct 16, 2024
a674de4
fix(PyodideWorker): made an error with the refactor
sra405 Oct 16, 2024
732c77e
general tidy up
sra405 Oct 16, 2024
5f2998a
fix(PyodideWorker): minor fixes needed after tidy up and refactor
sra405 Oct 16, 2024
28a493a
PyodideRunner - remove console log
sra405 Oct 16, 2024
c0213cd
initial console functionality
loiswells97 Oct 16, 2024
5feae09
fixing autorun
loiswells97 Oct 16, 2024
be7fe9a
adding iframe console into actual editor and getting it autorunning w…
loiswells97 Oct 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ REACT_APP_PLAUSIBLE_DATA_DOMAIN=''
REACT_APP_PLAUSIBLE_SOURCE=''
REACT_APP_SENTRY_DSN=''
REACT_APP_SENTRY_ENV='local'
PUBLIC_URL='http://localhost:3010'
PUBLIC_URL='http://localhost:3011'
ASSETS_URL='http://localhost:3010'
3 changes: 1 addition & 2 deletions .env.webcomponent.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
REACT_APP_AUTHENTICATION_URL='http://localhost:9001'
REACT_APP_SENTRY_DSN=''
REACT_APP_SENTRY_ENV='local'
# NB This is the URL of react-ui, rather than the web component
PUBLIC_URL=http://localhost:3012
PUBLIC_URL=http://localhost:3011
REACT_APP_IDENTITY_URL='http://localhost:3011'
REACT_APP_API_ENDPOINT='http://localhost:3009'
ASSETS_URL='http://localhost:3011'
7 changes: 3 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,13 @@ jobs:
with:
install: false
start: |
yarn start
yarn start:wc
wait-on: "http://localhost:3010, http://localhost:3011"
wait-on: "http://localhost:3011"
quiet: true
env:
REACT_APP_API_ENDPOINT: "https://test-editor-api.raspberrypi.org"
PUBLIC_URL: "http://localhost:3010"
ASSETS_URL: "http://localhost:3010"
PUBLIC_URL: "http://localhost:3011"
ASSETS_URL: "http://localhost:3011"
REACT_APP_PLAUSIBLE_SOURCE: ""

- name: Archive cypress artifacts
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
type: string
base_url:
required: false
default: "https://staging-editor.raspberrypi.org"
default: "https://staging-editor-static.raspberrypi.org"
type: string
assets_url:
required: false
Expand Down Expand Up @@ -44,7 +44,7 @@ on:
type: string
react_app_plausible_data_domain:
required: false
default: "staging-editor.raspberrypi.org"
default: "staging-editor-static.raspberrypi.org"
type: string
react_app_plausible_source:
required: false
Expand Down Expand Up @@ -123,11 +123,9 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build site and WC bundle
- name: Build WC bundle
run: |
if [[ "${{ inputs.environment }}" == "production" ]]; then
yarn build
else
if [[ "${{ inputs.environment }}" != "production" ]]; then
yarn build:dev
fi
yarn build:wc
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:3010",
"url": "http://localhost:3011",
"webRoot": "${workspaceFolder}"
}
]
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

### Added

- PyodideWorker setup for the editor (#1104)
- Enabling `pyodide` support in the web component (#1090)
- `Pyodide` `matplotlib` support (#1087)

### Changed

- Upgrade to `webpack 5` (#1096)
- Bump `pyodide` to `v0.26.2` (#1098)

### Fixed

- Dynamic runner switching with more than one `python` file (#1097)
- Pyodide running the correct file (`main.py`) when there are multiple `python` files (#1097)

## [0.27.1] - 2024-10-01

### Fixed
Expand Down Expand Up @@ -110,6 +126,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Changed

- Remove unused `/embedded/projects/:identifier` route (#1013)
- Runner defaults to `pyodide` (#937)

### Fixed

Expand All @@ -124,6 +141,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Fix initial value of `user` in `WebComponentLoader` (#1021)
- Make `authKey` in e2e web component spec more realistic (#1022)
- Remove unused `ComponentStore` (#1023)
- Dynamic switching between `pyodide` and `skulpt` based on user imports (#937)

## [0.23.0] - 2024-05-09

Expand Down
Loading
Loading