d3py icon indicating copy to clipboard operation
d3py copied to clipboard

Ability to stop the server after fig.show()

Open maksim2042 opened this issue 12 years ago • 2 comments

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

maksim2042 avatar Jul 31 '12 15:07 maksim2042

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

andrewcstewart avatar Feb 17 '13 04:02 andrewcstewart

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.

mynameisfiber avatar Feb 26 '13 02:02 mynameisfiber