A reminder of the settings that enable Redash to use Python data sources.
$sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.6
BuildVersion: 17G14042
$docker --version
Docker version 20.10.0, build 7287ab3
I installed Redash locally based on Docker.
The version of Redash uses v8.0.0
.
The installation method is here
Python data source is not available by default, so to enable it
redash/settings/__init__.default listed in py_query_to runners
#### **`"redash.query_runner.python"To add.`**
redash/settings/__init__.py
(abridgement)
322
323 # Query Runners
324 default_query_runners = [
325 "redash.query_runner.python",
326 "redash.query_runner.athena",
327 "redash.query_runner.big_query",
328 "redash.query_runner.google_spreadsheets",
329 "redash.query_runner.graphite",
330 "redash.query_runner.mongodb",
Then run docker-compose up
.
`Docker-compose restart`
if it is already running.
After accessing localhost: 5000
with a browser and opening the Redash screen,
Settings → Data Sources tab → + New Data Source.
You can now select a Python data source by typing "Python" in the search window.
Recommended Posts