fschulze / sqlalchemy_schemadisplay

Other
138 stars 37 forks source link

Add IPython Jupyter Notebook support #8

Open shivam-tripathi opened 6 years ago

shivam-tripathi commented 6 years ago

It would be great to have sqlalchemy_schemadisplay render final image inside Jupyter Notebook.

fschulze commented 6 years ago

Since I don't use Jupyter myself (yet), someone needs to implement that. Happy to merge a PR and make a release.

psychemedia commented 6 years ago

An intermediate way of doing this is to save a dummy SVG and then view it in the notebook:

from IPython.display import SVG

graph.write_svg('test.svg')
SVG('test.svg')
psychemedia commented 6 years ago

I've made some sort of attempt at this here: https://github.com/innovationOUtside/ipython_magic_sqlalchemy_schemadisplay