Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fzumstein committed Feb 9, 2025
1 parent 7594ec7 commit c69e769
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
- disable examples
- allow to run whole module instead of single script
- global function namespace
- redirect stdout for custom functions (for print)
- fix datetime bug in xlwings
- global function namespace
- disable examples
- allow to run whole module instead of single script
- store pyodide version in xml
- only store editor content if not empty/default
- 3rd party licenses
- requirements.txt file vs editor
- test deployed (without dev server)
- own repo
- enable paste into editor (sort of works via right-click but not Cmd+V)

- Don't send full book
- Run script via Keyboard shortcut
Expand Down
5 changes: 4 additions & 1 deletion app/static/js/core/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,12 @@ const monacoEditor = {
try {
return await Excel.run(async (context) => {
const settings = context.workbook.settings;
const content = settings.getItem(filename);
const content = settings.getItemOrNullObject(filename);
content.load("value");
await context.sync();
if (content.isNullObject) {
return null;
}
// Update scripts after loading content
if (content.value) {
this.updateScripts(content.value);
Expand Down

0 comments on commit c69e769

Please sign in to comment.