-
Notifications
You must be signed in to change notification settings - Fork 4
Adding Package Utility #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…in order to connect the editor with the packages that pyodide has available, also added loading packages and executing using loadPackagesFromImports(codeString), an inbuilt pyodide function
…rder to run the load package files. Change path back to local public directory
…er to add them (more description on how to in the README)
| } | ||
| }); | ||
|
|
||
| try{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code style: Needs space between try and opening curly brace
| }); | ||
|
|
||
| try{ | ||
| // load from specific URL from Pyodide - if integrity issues check that correct version and correct URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code style: Capitalise first word of comments
| // load from specific URL from Pyodide - if integrity issues check that correct version and correct URL | ||
| await pyodideInstance.loadPackagesFromImports(codeString); | ||
| } catch (e) { | ||
| let outputLine = e.message; // if fails do not run the code, output the error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code style: Capitalise first word of comments
dillondesilva
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor styling issues but otherwises LGTM👍🏽
Made it so that packages can be imported into the python code. Also made a note for users in the markdown - might want to make clearer? Basically just saying if they want packages to be available when they create their own pyodide instance with a custom folder path, that folder must contain the packages they want in a .whl file.