Giter Site home page Giter Site logo

IP Address Could not be found about dtale HOT 2 CLOSED

man-group avatar man-group commented on May 22, 2024
IP Address Could not be found

from dtale.

Comments (2)

aschonfeld avatar aschonfeld commented on May 22, 2024 1

@hristogg luck for you I have built a way to do this: dtale.show(df, host='localhost')

Although I think you're right, you'll want to specify the host of the machine that jupyterhub is running. The way the code detects the hostname is this:

import socket

socket.gethostname()

But I do have a check to see if what comes out of socket.gethostname() is actually reachable. I've noticed on a Mac sometimes they specify a name that isn't actually reachable. You can check if the host is valid by doing socket.gethostbyname(socket.gethostname())

If socket.gethostbyname doesn't return True then the code will default to localhost. So you could also try setting host= to the raw IP address.

Hope this helps and let me know if you encounter further issues.

from dtale.

hristogg avatar hristogg commented on May 22, 2024 1

Thanks, the host solved my issue, had to specify the IP itself and it worked.

from dtale.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.