mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-28 12:58:11 +08:00
core library (#711)
* move app creation to function * create engine without load * flake 8 fixes * cleanup original scanpy test * add default config * handle missing data * test data changes * unify update * load data isn't static anymore * make app a class
This commit is contained in:
@@ -7,6 +7,7 @@ import webbrowser
|
||||
|
||||
import click
|
||||
|
||||
from server.app.app import Server
|
||||
from server.app.util.errors import ScanpyFileError
|
||||
from server.app.util.utils import custom_format_warning
|
||||
|
||||
@@ -116,8 +117,9 @@ def launch(
|
||||
cellxgene_url = f"http://{host}:{port}"
|
||||
|
||||
# Import Flask app
|
||||
from server.app.app import app
|
||||
server = Server()
|
||||
|
||||
app = server.create_app()
|
||||
app.config.update(DATASET_TITLE=title)
|
||||
|
||||
if not verbose:
|
||||
|
||||
Reference in New Issue
Block a user