Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.41 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.41 KB

IBMi-Jupyter

Utility notebook for using Jupyter notebooks with IBMi for basic reports and visualizations.

Example

[Cell 1]

# Loads IBMi notebook
%%run IBMi.ipynb

[Cell 2]

-- Do a simple DB2 query
%%ibmi

select *
from QSYS2.SYSTABLES
limit 10;

See more in tests/Test.ipynb

Setup

  • Install dependencies - pip3 install jupyter pandas matplotlib numpy pyodbc
  • Open Jupyter - jupyter notebook (current directory)
  • Hosted locally at - http://localhost:8888/notebooks

Additional Jupyter Commands

  • %%javascript - javascript code cell
  • %load_ext sql - load iPython SQL extension
  • %quickref - quick reference of IPython
  • %%run <file> - run another notebook
  • %%sql - SQL code cell

References