I thought that as long as you had key, lat, and lon in webapp_input.csv, then it would work. Just tried it though, and am getting a blank screen. Am I just wrong about that?
Docker container log is this:
2017-05-03 02:34:10,036 Starting Bokeh server version 0.12.4
2017-05-03 02:34:10,047 Starting Bokeh server on port 5006 with applications at paths ['/dapc_webapp']
2017-05-03 02:34:10,047 Starting Bokeh server with process id: 6
2017-05-03 02:34:19,240 302 GET / (172.17.0.1) 1.05ms
2017-05-03 02:34:19,760 Error running application handler <bokeh.application.handlers.directory.DirectoryHandler object at 0x7fb7e972fc18>: 'ColumnDataSource' object is not subscriptable
File "main.py", line 125, in create_crossfilter:
values = _df[_x][pd.notnull(_df[_x])].unique() Traceback (most recent call last):
File "/opt/conda/lib/python3.6/site-packages/bokeh/application/handlers/code_runner.py", line 81, in run
exec(self._code, module.dict)
File "/bokeh/dapc_webapp/main.py", line 377, in
crossfilter = create_crossfilter(source, source, discrete, x.value, y.value)
File "/bokeh/dapc_webapp/main.py", line 125, in create_crossfilter
values = _df[_x][pd.notnull(_df[_x])].unique()
TypeError: 'ColumnDataSource' object is not subscriptable
2017-05-03 02:34:19,772 200 GET /dapc_webapp (172.17.0.1) 488.02ms
2017-05-03 02:34:20,251 WebSocket connection opened
2017-05-03 02:34:20,251 ServerConnection created
2017-05-03 02:34:22,123 WebSocket connection closed: code=1001, reason=None
2017-05-03 02:34:22,128 Error running application handler <bokeh.application.handlers.directory.DirectoryHandler object at 0x7fb7e972fc18>: 'ColumnDataSource' object is not subscriptable
File "main.py", line 125, in create_crossfilter:
values = _df[_x][pd.notnull(_df[_x])].unique() Traceback (most recent call last):
File "/opt/conda/lib/python3.6/site-packages/bokeh/application/handlers/code_runner.py", line 81, in run
exec(self._code, module.dict)
File "/bokeh/dapc_webapp/main.py", line 377, in
crossfilter = create_crossfilter(source, source, discrete, x.value, y.value)
File "/bokeh/dapc_webapp/main.py", line 125, in create_crossfilter
values = _df[_x][pd.notnull(_df[_x])].unique()
TypeError: 'ColumnDataSource' object is not subscriptable
2017-05-03 02:34:22,136 200 GET /dapc_webapp (172.17.0.1) 9.55ms
2017-05-03 02:34:22,177 304 GET /static/css/bokeh.min.css?v=7246afcfffc127faef7c138bce4742e9 (172.17.0.1) 10.55ms
2017-05-03 02:34:22,184 304 GET /static/css/bokeh-widgets.min.css?v=d9cb9322d940f107727b091ff98d9c70 (172.17.0.1) 5.20ms
2017-05-03 02:34:22,189 304 GET /static/js/bokeh.min.js?v=9d3af13f493d36073a89714f6a5240c6 (172.17.0.1) 3.11ms
2017-05-03 02:34:22,194 304 GET /static/js/bokeh-widgets.min.js?v=1af1302b8bd7fcc88c7bcafb8771497b (172.17.0.1) 3.46ms
2017-05-03 02:34:22,659 WebSocket connection opened
2017-05-03 02:34:22,659 ServerConnection created
2017-05-03 02:34:23,804 WebSocket connection closed: code=1001, reason=None
2017-05-03 02:34:23,810 Error running application handler <bokeh.application.handlers.directory.DirectoryHandler object at 0x7fb7e972fc18>: 'ColumnDataSource' object is not subscriptable
File "main.py", line 125, in create_crossfilter:
values = _df[_x][pd.notnull(_df[_x])].unique() Traceback (most recent call last):
File "/opt/conda/lib/python3.6/site-packages/bokeh/application/handlers/code_runner.py", line 81, in run
exec(self._code, module.dict)
File "/bokeh/dapc_webapp/main.py", line 377, in
crossfilter = create_crossfilter(source, source, discrete, x.value, y.value)
File "/bokeh/dapc_webapp/main.py", line 125, in create_crossfilter
values = _df[_x][pd.notnull(_df[_x])].unique()
TypeError: 'ColumnDataSource' object is not subscriptable
2017-05-03 02:34:23,817 200 GET /dapc_webapp (172.17.0.1) 7.76ms
2017-05-03 02:34:23,855 304 GET /static/css/bokeh.min.css?v=7246afcfffc127faef7c138bce4742e9 (172.17.0.1) 3.66ms
2017-05-03 02:34:23,858 304 GET /static/js/bokeh-widgets.min.js?v=1af1302b8bd7fcc88c7bcafb8771497b (172.17.0.1) 2.02ms
2017-05-03 02:34:23,862 304 GET /static/css/bokeh-widgets.min.css?v=d9cb9322d940f107727b091ff98d9c70 (172.17.0.1) 3.51ms
2017-05-03 02:34:23,869 304 GET /static/js/bokeh.min.js?v=9d3af13f493d36073a89714f6a5240c6 (172.17.0.1) 4.45ms
2017-05-03 02:34:24,293 WebSocket connection opened
2017-05-03 02:34:24,293 ServerConnection created
2017-05-03 02:34:25,190 WebSocket connection closed: code=1001, reason=None
IP & PORTS
You can access this container using the following IP address and port:
I thought that as long as you had key, lat, and lon in webapp_input.csv, then it would work. Just tried it though, and am getting a blank screen. Am I just wrong about that?
Docker container log is this:
2017-05-03 02:34:10,036 Starting Bokeh server version 0.12.4 2017-05-03 02:34:10,047 Starting Bokeh server on port 5006 with applications at paths ['/dapc_webapp'] 2017-05-03 02:34:10,047 Starting Bokeh server with process id: 6 2017-05-03 02:34:19,240 302 GET / (172.17.0.1) 1.05ms 2017-05-03 02:34:19,760 Error running application handler <bokeh.application.handlers.directory.DirectoryHandler object at 0x7fb7e972fc18>: 'ColumnDataSource' object is not subscriptable File "main.py", line 125, in create_crossfilter: values = _df[_x][pd.notnull(_df[_x])].unique() Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/bokeh/application/handlers/code_runner.py", line 81, in run exec(self._code, module.dict) File "/bokeh/dapc_webapp/main.py", line 377, in
crossfilter = create_crossfilter(source, source, discrete, x.value, y.value)
File "/bokeh/dapc_webapp/main.py", line 125, in create_crossfilter
values = _df[_x][pd.notnull(_df[_x])].unique()
TypeError: 'ColumnDataSource' object is not subscriptable
2017-05-03 02:34:19,772 200 GET /dapc_webapp (172.17.0.1) 488.02ms 2017-05-03 02:34:20,251 WebSocket connection opened 2017-05-03 02:34:20,251 ServerConnection created 2017-05-03 02:34:22,123 WebSocket connection closed: code=1001, reason=None 2017-05-03 02:34:22,128 Error running application handler <bokeh.application.handlers.directory.DirectoryHandler object at 0x7fb7e972fc18>: 'ColumnDataSource' object is not subscriptable File "main.py", line 125, in create_crossfilter: values = _df[_x][pd.notnull(_df[_x])].unique() Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/bokeh/application/handlers/code_runner.py", line 81, in run exec(self._code, module.dict) File "/bokeh/dapc_webapp/main.py", line 377, in
crossfilter = create_crossfilter(source, source, discrete, x.value, y.value)
File "/bokeh/dapc_webapp/main.py", line 125, in create_crossfilter
values = _df[_x][pd.notnull(_df[_x])].unique()
TypeError: 'ColumnDataSource' object is not subscriptable
2017-05-03 02:34:22,136 200 GET /dapc_webapp (172.17.0.1) 9.55ms 2017-05-03 02:34:22,177 304 GET /static/css/bokeh.min.css?v=7246afcfffc127faef7c138bce4742e9 (172.17.0.1) 10.55ms 2017-05-03 02:34:22,184 304 GET /static/css/bokeh-widgets.min.css?v=d9cb9322d940f107727b091ff98d9c70 (172.17.0.1) 5.20ms 2017-05-03 02:34:22,189 304 GET /static/js/bokeh.min.js?v=9d3af13f493d36073a89714f6a5240c6 (172.17.0.1) 3.11ms 2017-05-03 02:34:22,194 304 GET /static/js/bokeh-widgets.min.js?v=1af1302b8bd7fcc88c7bcafb8771497b (172.17.0.1) 3.46ms 2017-05-03 02:34:22,659 WebSocket connection opened 2017-05-03 02:34:22,659 ServerConnection created 2017-05-03 02:34:23,804 WebSocket connection closed: code=1001, reason=None 2017-05-03 02:34:23,810 Error running application handler <bokeh.application.handlers.directory.DirectoryHandler object at 0x7fb7e972fc18>: 'ColumnDataSource' object is not subscriptable File "main.py", line 125, in create_crossfilter: values = _df[_x][pd.notnull(_df[_x])].unique() Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/bokeh/application/handlers/code_runner.py", line 81, in run exec(self._code, module.dict) File "/bokeh/dapc_webapp/main.py", line 377, in
crossfilter = create_crossfilter(source, source, discrete, x.value, y.value)
File "/bokeh/dapc_webapp/main.py", line 125, in create_crossfilter
values = _df[_x][pd.notnull(_df[_x])].unique()
TypeError: 'ColumnDataSource' object is not subscriptable
2017-05-03 02:34:23,817 200 GET /dapc_webapp (172.17.0.1) 7.76ms 2017-05-03 02:34:23,855 304 GET /static/css/bokeh.min.css?v=7246afcfffc127faef7c138bce4742e9 (172.17.0.1) 3.66ms 2017-05-03 02:34:23,858 304 GET /static/js/bokeh-widgets.min.js?v=1af1302b8bd7fcc88c7bcafb8771497b (172.17.0.1) 2.02ms 2017-05-03 02:34:23,862 304 GET /static/css/bokeh-widgets.min.css?v=d9cb9322d940f107727b091ff98d9c70 (172.17.0.1) 3.51ms 2017-05-03 02:34:23,869 304 GET /static/js/bokeh.min.js?v=9d3af13f493d36073a89714f6a5240c6 (172.17.0.1) 4.45ms 2017-05-03 02:34:24,293 WebSocket connection opened 2017-05-03 02:34:24,293 ServerConnection created 2017-05-03 02:34:25,190 WebSocket connection closed: code=1001, reason=None IP & PORTS You can access this container using the following IP address and port:
DOCKER PORT ACCESS URL 5006/tcp localhost:5006