Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix server_jupyter #31

Merged
merged 4 commits into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ __pycache__/
extra/
*.py[cod]
*$py.class
src/kweb/gds_files/

joamatab marked this conversation as resolved.
Show resolved Hide resolved

# C extensions
*.so
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ test:
cov:
pytest --cov=kweb

run:
export KWEB_FILESLOCATION=/tmp/gdsfactory
cd src/kweb
uvicorn --reload default:app

joamatab marked this conversation as resolved.
Show resolved Hide resolved
mypy:
mypy . --ignore-missing-imports

Expand Down
2 changes: 1 addition & 1 deletion src/kweb/default.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .browser import get_app
from kweb.browser import get_app

app = get_app()
2 changes: 1 addition & 1 deletion src/kweb/server_jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# import requests
import uvicorn

from kweb.main import app
from kweb.default import app

global jupyter_server
jupyter_server = None
Expand Down