powerful-dress-75267
11/24/2022, 9:14 AM@card(type='blank')
@step
def fetch_dataset(self):
self.dataset = fetch() # fetch from url, returns a pd.DataFrame
current.card.append(Markdown("# Input dataset"))
current.card.append(Table(self.dataset))
Then when I do
from metaflow.cards import get_cards
get_cards(flow_name + '/' + Flow(flow_name).latest_run.id + '/fetch_dataset/2')[0]
it shows only "*Input dataset*" and then an empty frame that seems to grow indefinitely.
Edit: I tried updating my code to see what would happen:
current.card.append(Table([[1,2,3,4], [1,2,3,4]]))
This time the table is displayed, but it still grows the white frame indefinitely below the table.
FYI I am running Jupyter Notebook in VScode.