Reciepe is:
- Install IJ Advertiser plugin to be able to discover running instances of IDE.
- Install DataGrip exposer plugin to expose DB connectivity as REST API.
- Install Python libraries
easy_install --user dg-alchemy-integration
oreasy_install --user dg-integration
for integration SQLAlchemy or DBAPI - PROFIT
easy_install --user dg-alchemy-integration ipython-sql matplotlib jupyter
- Create data source named
my_ds
. - Open Jupiter Notebook
- Run
%load_ext sql
%sql dg://my_ds
- Hi!
%sql select 'Hello world!'
- Store!
%%sql res <<
select 'Java', 50 as "%"
union
select 'Python', 50
- Wow!
%matplotlib inline
chart = res.pie()
- Install sakila and have a fun!