Keck-DataReductionPipelines / KCWI_DRP

KCWI python DRP
BSD 3-Clause "New" or "Revised" License
10 stars 14 forks source link

Running DRP in a jupyter notebook #103

Open prusinski opened 3 years ago

prusinski commented 3 years ago

From a usability standpoint, is there a native way to run the reduction in a jupyter notebook? I’m interested in preserving some the bokeh plots in a format where I can go back and interact with them post-reduction. It would also be nice since not all of the plots appear to be saved even when saveintims = True. Right now, I have a call like !python reduce_kcwi.py … and it opens a new window for the bokeh plots, but I was wondering if inline bokeh windows were possible (say one for each plot)?

MNBrod commented 3 years ago

At the moment, there isn't a way to invoke the pipeline natively from jupyter. I'll take a look at the feasibility of implementing that and respond here later, once I know whether I can make it happen.

For looking at intermediate plots, you can raise the amount of time that plots display before the next one pops up by raising the inter parameter in kcwi.cfg to some arbitrary number of seconds. I recognize that it isn't a great solution, but it will give you the opportunity to save whatever plots are being passed over for now.