Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bzz opened this issue Oct 29, 2023 · 0 comments
Open

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

bzz opened this issue Oct 29, 2023 · 0 comments

Comments

@bzz
Copy link

bzz commented Oct 29, 2023

馃憢 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant