Skip to content

Commit

Permalink
Fix help function
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed May 17, 2024
1 parent 986a2a7 commit a2ae883
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions public/chat/pyodide-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@ async def run(source, io_context):
except:
traceback.print_exc()
raise
def help():
return """Welcome to Python (Pyodide, WebAssembly)!
This code interperter is a Jupyter notebook-like environment, it support top-level await operations and the asyncio event loop is already running, so you can call "await func()" directly without wrapping in a async function or using asyncio.run.
The environment has access to remote servers, so you can fetch remote data by using python modules "requests" or "imjoy_rpc.hypha" for connect to the Hypha/BioEngine server.
User data will be mounted to the \`/mnt\` directory. Use "os.listdir('/mnt')" to explore available files before processing.
"""
`
const mountedFs = {}

Expand Down

0 comments on commit a2ae883

Please sign in to comment.