10 ms·
My primary use of IPython is as an interactive environment, but I've used it in production in a couple ways: - I have a script that runs at midnight to fetch t
by paulgb 13y ago
My primary use of IPython is as an interactive environment, but I've used it in production in a couple ways:
- I have a script that runs at midnight to fetch the last day's data and run an IPython notebook with runipy (https://pypi.python.org/pypi/runipy https://pypi.python.org/pypi/runipy). I render the notebook to HTML with nbconvert with a template that hides the Python code, and emails me the output.
- I have a model that needs to be trained occasionally as part of a workflow. Rather than writing a python script, I use a notebook. After training the model I plot some graphs to evaluate/validate the model and these become part of an HTML report that gets generated alongside the model. I use runipy to automate the pipeline.