Posting here as I realized this might be a more general issue since this is not working with multiple tools.
What I am trying to do:
Run notebooks in an automated way to generate notebooks as reports which have graphical output, using the three tools to parameterize them.
The issue:
plots don’t show up, rich pandas tables (style method applied and shown as html) also don’t show.
What I have tried:
The simplest example, take a notebook and run:
import altair as alt
import pandas as pd
source = pd.DataFrame({
'a': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I'],
'b': [28, 55, 43, 91, 81, 53, 19, 87, 52]
})
alt.Chart(source).mark_bar().encode(
x='a',
y='b'
)
The plot will show up fine.
But when the notebook is ran through (in my testing the below three):
- Jupyter Scheduler
- papermill
- ploomber
None of them have the outputted notebook retaining the plots.
Does anyone know why this might be or if I am overlooking something or some configuration option in jupyterlab?
Note, I did originally post here: Ability to store charts and rich tables · Issue #570 · jupyter-server/jupyter-scheduler · GitHub
but then tried the other tools and realized this seems to be a more general issue.
Additional detail which is probably not necessary since this seems to be the a case with jupyterlab,
The Jupyter Scheduler is just a standard job:
For ploomber it is ran with code like this:
from ploomber_engine import execute_notebook
nb = execute_notebook('basic.ipynb', output_path='basic_candy.ipynb')