Hacker News new | ask | show | jobs
by bonoboTP 2653 days ago
I find it useful to work with plots in Jupyter notebooks. Use the "%matplotlib notebook" cell magic to get interactive plots inline.

Then you can use savefig when it looks good. Then save the code you used into some file near the Latex sources.

1 comments

I also use this approach.

To standardize appearance I put appearance modifiers in `notebook_context/__init__.py`, and then in my second jupyter cell

  from notebook_context import *
  configure_plotting_for_publication()
Example notebook_context: https://github.com/maksimt/empirical_privacy/blob/master/src...