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.hallowed-glass-14538
11/24/2022, 12:46 PMcurrent.card.append(Table.from_dataframe(self.dataset))hallowed-glass-14538
11/24/2022, 12:47 PMTable object has a from_dataframe method that helps with this.powerful-dress-75267
11/24/2022, 1:50 PMpowerful-dress-75267
11/24/2022, 5:26 PMhallowed-glass-14538
11/24/2022, 8:01 PMpowerful-dress-75267
11/25/2022, 2:21 PMpowerful-dress-75267
11/25/2022, 2:30 PMbrave-lion-15961
11/28/2022, 3:35 PMstale-salesmen-66018
12/06/2022, 3:21 PMbrave-lion-15961
12/06/2022, 4:39 PMbrave-lion-15961
12/06/2022, 5:26 PMstale-salesmen-66018
12/07/2022, 8:45 AMbrave-lion-15961
01/13/2023, 2:52 PM