Skip to content

Commit

Permalink
pyscript changes
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed Sep 18, 2023
1 parent 8ef0621 commit bdf0ad8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/src/mixins/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,12 @@ export function equals<T extends number | string>(a: T[], b: T[]) {

export function addPyScript() {
if (!document.getElementById('pyscript')) {
const env = document.createElement('py-env');
const env = document.createElement('py-config');
env.innerHTML = `
- numpy
- matplotlib
packages = ["numpy", "matplotlib"]
[splashscreen]
enabled = false
`
document.head.appendChild(env);
const script = document.createElement('script');
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/pages/Index/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,8 @@ body.rb.rb-lock-off {
}
}
py-loader py-terminal {
display: none;
}
</style>

0 comments on commit bdf0ad8

Please sign in to comment.