meerkat icon indicating copy to clipboard operation
meerkat copied to clipboard

Dataframe loading fails on Colab: 'localhost refused to connect'

Open bzz opened this issue 2 years ago • 0 comments

👋 team, thanks for an awesome library. Is it supposed to work on Collab? I'm having difficulties making a small demo.

Describe the bug

After mk.gui.start(api_port=2024, frontend_port=8010) iframe fails to load on attempt to show the dataframe.

To Reproduce Steps and code snippet that reproduce the behavior:

  1. Code snippet
import os
import io
import meerkat as mk
import numpy as np
import pandas as pd

samples = io.StringIO(r"""
{"X":"a","Y":"b","Z": 1}
""")
df = mk.from_json(samples, lines=True)
mk.gui.start(api_port=2024, frontend_port=8010)
df
  1. Instructions in this notebook
  2. Errors and traceback Only localhost refused to connect. Screenshot 2023-10-29 at 16 57 59

But !curl 127.0.0.1:8010 returns the HTLM.

Changing the name in run_frontend to 127.0.0.1 didn't change the outcome (127.0.0.1 refused to connect.)

Expected behavior See a dataframe table.

System Information

  • Google Colab

Would appreciate any pointers for getting a demo up and running on Colab. Thanks!

bzz avatar Oct 29 '23 16:10 bzz