Skip to content

Commit

Permalink
Merge pull request #19 from bitswan-space/fix/bs-jupyter
Browse files Browse the repository at this point in the history
Fix: fix some cells being string instead of lists in execution of bs-…
  • Loading branch information
Pavel-108 committed May 10, 2024
2 parents ed30d1c + 1af5cf8 commit af5ae4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pre/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if cell["cell_type"] == "code":
source = cell["source"]
if len(source) > 0 and "#ignore" not in source[0]:
code = "\n".join(cell["source"])
code = "\n".join(cell["source"]) if isinstance(cell["source"], list) else cell["source"]
exec(code)

App().run()

0 comments on commit af5ae4a

Please sign in to comment.