Skip to content

Commit

Permalink
User updating
Browse files Browse the repository at this point in the history
  • Loading branch information
alankrantas committed Nov 5, 2024
1 parent a2bb303 commit 8490060
Show file tree
Hide file tree
Showing 4 changed files with 470 additions and 653 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@
},
"dependencies": {
"@monaco-editor/react": "^4.6.0",
"pyodide": "^0.26.2",
"pyodide": "^0.26.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"@vitejs/plugin-react": "^4.3.2",
"eslint": "^9.11.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.12",
"typescript": "^5.6.2",
"vite": "^5.4.8",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"@vitejs/plugin-react": "^4.3.3",
"eslint": "^9.14.0",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.14",
"typescript": "^5.6.3",
"vite": "^5.4.10",
"yarn-upgrade-all": "^0.7.4"
}
}
3 changes: 2 additions & 1 deletion src/component/MonacoEditorExecute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ const stdout = (msg: any) => consoleOutput.push(msg);

export const LoadPyodide = async (): Promise<any> => {
return await loadPyodide({
indexURL: "https://cdn.jsdelivr.net/pyodide/v0.26.2/full/",
indexURL: "https://cdn.jsdelivr.net/pyodide/v0.26.3/full/",
stdout: stdout,
stderr: stdout,
packages: [
"numpy",
"scipy",
"pandas",
"scikit-learn",
]
Expand Down
2 changes: 1 addition & 1 deletion src/data/exampleCode.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'''
Tip:
Use print() to print results.
Supported additional packages: numpy, pandas and scikit-learn.
Supported additional packages: numpy, scipy, pandas and scikit-learn.

Note: it will take a moment to load Pyodide for the first time executing.
Fetching remote files using `pandas.read_csv`, etc. will not work.
Expand Down
Loading

0 comments on commit 8490060

Please sign in to comment.