Hello, I am experiencing a bug using cards in note...
# ask-metaflow
p
Hello, I am experiencing a bug using cards in notebooks. Here is how I create a card:
Copy code
@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
Copy code
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:
Copy code
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.