mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-06 03:28:13 +08:00
remove printing (#455)
This commit is contained in:
committed by
Charlotte Weaver
parent
141f802824
commit
a81258bc0d
@@ -1,6 +1,7 @@
|
|||||||
import sys
|
import sys
|
||||||
import click
|
import click
|
||||||
import logging
|
import logging
|
||||||
|
from os import devnull
|
||||||
from os.path import splitext, basename
|
from os.path import splitext, basename
|
||||||
import webbrowser
|
import webbrowser
|
||||||
|
|
||||||
@@ -112,4 +113,8 @@ def launch(data, layout, diffexp, title, verbose, debug, obs_names, var_names,
|
|||||||
|
|
||||||
click.echo("[cellxgene] Type CTRL-C at any time to exit.")
|
click.echo("[cellxgene] Type CTRL-C at any time to exit.")
|
||||||
|
|
||||||
|
if not verbose:
|
||||||
|
f = open(devnull, 'w')
|
||||||
|
sys.stdout = f
|
||||||
|
|
||||||
app.run(host=host, debug=debug, port=port, threaded=True)
|
app.run(host=host, debug=debug, port=port, threaded=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user