mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-19 10:58:10 +08:00
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:
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user