importIPythonfromIPython.displayimportHTML,displayimportdatetimefromipywidgetsimportinteract,interactive,fixed,interact_manualimportipywidgetsaswidgetsimportscipyasspimportpandasaspdimportpylabaspltimportmatplotlib.mlabasmlab%matplotlib notebook
importurllib.requestimportosimportsysimportgzipimportzipfileimportshutiltry:importOpenPNMaspnmexceptExceptionasex:print('OpenPNM is not installed. Please us pip or conda to install.')print('='*50)print(ex)

#plot all pores in the Voronoi geometryimportOpenPNM.Utilities.vertexopsasvofig=vo.plot_pore(delaunay['geo'],delaunay['geo'].pores())#fig = pnm.Network.tools.plot_connections(network = vor,fig=fig)fig=pnm.Network.tools.plot_coordinates(network=delaunay['network'],fig=fig,pores=delaunay['network'].pores('boundary'),c='g')throats=delaunay['network'].find_neighbor_throats(pores=[0])#plot all throats connected to the first pore in the networkfig=vo.plot_throat(delaunay['geo'],throats)