From 97ce240164eb29c37ed520b043f561a67e5af71d Mon Sep 17 00:00:00 2001 From: Matt Chan Date: Fri, 26 Jun 2020 19:00:57 -0700 Subject: [PATCH] Fiddling with mobile compatibility --- requirements.txt | 7 ++----- runtime.txt | 2 +- static/default.css | 5 +++++ templates/about.html | 2 +- templates/index.html | 3 +-- ticker.py | 1 + 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/requirements.txt b/requirements.txt index 18846fe34..3add4bf9c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,6 @@ -bokeh==2.1.0 -dill==0.3.1.1 +bokeh==2.1.1 flask==1.1.2 gunicorn==19.9.0 -jinja2==2.11.2 pandas==1.0.5 pip==20.1.1 -requests==2.20.0 -simplejson==3.17.0 +requests==2.24.0 diff --git a/runtime.txt b/runtime.txt index 03a934b56..385705b56 100644 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -python-3.7.7 +python-3.8.3 diff --git a/static/default.css b/static/default.css index 12fe1e360..47d6c9d7d 100644 --- a/static/default.css +++ b/static/default.css @@ -47,6 +47,11 @@ h1 { margin:.67em 0 } +.bokeh { + width:100%; + max-width:800px; +} + hr { -webkit-box-sizing:content-box; box-sizing:content-box; diff --git a/templates/about.html b/templates/about.html index 8b0f932a0..f8d241536 100644 --- a/templates/about.html +++ b/templates/about.html @@ -13,7 +13,7 @@
A Simple Stock Price Visualizer -
+

About

diff --git a/templates/index.html b/templates/index.html index 6f9b7ecaa..dcfc9944c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -25,9 +25,8 @@ - -

+

{{ error }}

diff --git a/ticker.py b/ticker.py index 78da601cc..e7d9ebb2e 100644 --- a/ticker.py +++ b/ticker.py @@ -92,6 +92,7 @@ def build_plot(symbol): formatters={'@x': 'datetime'}) p.add_tools(hover) p.toolbar.active_inspect = hover + p.sizing_mode = 'stretch_width' return p