Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fzumstein committed Nov 13, 2024
1 parent 72c0c73 commit 908ef1d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/static/pyscript.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"packages": ["xlwings", "sqlite3", "pydantic", "numpy", "pandas", "matplotlib"],
"files": {
"/static/custom_functions.py": "./custom_functions.py",
"/static/custom_scripts.py": "./custom_scripts.py"
"/static/python/custom_functions.py": "./custom_functions.py",
"/static/python/custom_scripts.py": "./custom_scripts.py"
}
}
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions app/static/main.py → app/static/python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
- Check out https://docs.pyscript.net/2024.5.2/user-guide/workers/
TODO:
- create wasm folder under static
- support sheet buttons
- make current_user optional
- look into toJS vs json (func vs script)
- run 10000 custom functions
- remove CDNs
- automatic pyscript.json config?
- ObjectConverter
"""

Expand All @@ -23,7 +23,7 @@
import custom_scripts
import xlwings as xw # noqa: E402
from pydantic import BaseModel
from pyscript import window # noqa: E402
from pyscript import window # type: ignore # noqa: E402
from xlwings.server import (
custom_functions_call as xlwings_custom_functions_call,
custom_scripts_call as xlwings_custom_scripts_call,
Expand Down
3 changes: 1 addition & 2 deletions app/templates/examples/hello_world/taskpane_hello.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
<div class="container-fluid pt-3 ps-3">
<h1>Example Task Pane</h1>
{# PyScript Test #}
<script type="py" src="/static/main.py" config="/static/pyscript.json"></script>
<script type="py" src="/static/custom_functions.py" config="/static/pyscript.json"></script>
<script type="py" src="/static/python/main.py" config="/static/pyscript.json"></script>
<button type="button" name="test" class="btn btn-primary btn-sm" py-click="test">PyScript Test</button>
<button xw-click="test" xw-config='{"exclude": "MySheet"}' class="btn btn-primary btn-sm" type="button">
WASM
Expand Down

0 comments on commit 908ef1d

Please sign in to comment.