How to interface jupyter qtconsole kernel with python apllication

Any ideas to interface with python application into jupyter qtconsole kernel.
I tried using echo kernel. it was working pretty good but the thing is that i want to display the images in inline backend(‘module://ipykernel.pylab.backend_inline’). if i am using backend as ‘Qt5Agg’ it was working. the thing is that i have to display the image in the console itself.