fix anaconda build (#421)

* fix anaconda build

* Added link for TKAgg

* Add matplotlib to requirements

We are pulling it in through scanpy, but since we are importing it directly we should include it explicitly
This commit is contained in:
Charlotte Weaver
2018-11-09 13:22:45 -08:00
committed by GitHub
parent dfcef6075e
commit dd56d0937c
2 changed files with 5 additions and 0 deletions

View File

@@ -82,6 +82,10 @@ def launch(data, layout, diffexp, title, verbose, debug, obs_names, var_names,
click.echo(f"[cellxgene] Loading data from {basename(data)}, this may take awhile...")
# Fix for anaconda python. matplotlib typically expects python to be installed as a framework TKAgg is usually
# available and fixes this issue. See https://matplotlib.org/faq/virtualenv_faq.html
import matplotlib as mpl
mpl.use('TkAgg')
from server.app.scanpy_engine.scanpy_engine import ScanpyEngine
args = {

View File

@@ -6,6 +6,7 @@ Flask-Compress>=1.4.0
Flask-Cors>=3.0.6
Flask-RESTful>=0.3.6
flask-restful-swagger-2>=0.35
matplotlib>=2.2
numpy>=1.14.5
pandas>=0.23.1
scanpy>=1.3.2