mikedewar / d3py

a plottling library for python, based on D3
1.42k stars 202 forks source link

Ability to stop the server after fig.show() #49

Open maksim2042 opened 12 years ago

maksim2042 commented 12 years ago

... otherwise port 8000 remains in use and no new figs can be launched.

andrewcstewart commented 11 years ago

Yes. fit.stop() or something similar would be nice, if not automatic.

mynameisfiber commented 11 years ago

This can be accomplished by calling fig. _cleanup() or manually shutting down the threaded http server with:

fig.httpd.shutdown()
fig.httpd.server_close()

Although I agree there should probably be an easier interface into this.