fmt, stuff

This commit is contained in:
lda
2026-08-30 22:31:12 +07:00 Verified
parent e2958ea91a
commit 0b87620852
7 changed files with 87 additions and 13 deletions
+25
View File
@@ -0,0 +1,25 @@
import argparse
def main() -> None:
from .app import app as interactive_shell_app
from .jupyter import app as jupyter_app
parser = argparse.ArgumentParser(description="Run the Jupyter shell web app.")
parser.add_argument(
"--jupyter",
action="store_true",
help="Run the Jupyter shell web app.",
)
args = parser.parse_args()
import uvicorn
if args.jupyter:
uvicorn.run(jupyter_app, host="::", port=8000, log_level="info")
else:
uvicorn.run(interactive_shell_app, host="::", port=8000, log_level="info")
if __name__ == "__main__":
main()