Giter Site home page Giter Site logo

Comments (3)

Zombiesen avatar Zombiesen commented on August 16, 2024

I checked Issue #22
I am running it as script.

In a Python script - this should block otherwise the script will continue or finish without giving the user a chance to interact

from pandasgui.

adamerose avatar adamerose commented on August 16, 2024

You mentioned the other issue (where the solution was adding settings={'block': True}, but in your two code snippets I don't see that.

To clarify, when you run show(df) in a script (as opposed to in IPython or notebooks) the script will continue executing and when it finishes then all windows will immediately close, that's why you need settings={'block':True}

So to solve your problem I think you can either run your code snippets in the IPython console, or change them to

import pandas as pd
from pandasgui import show
path = "https://raw.githubusercontent.com/adamerose/datasets/master/pokemon.csv"
pokemon = pd.read_csv(path)
gui = show(pokemon , settings={'block': True})
import pandas as pd
from pandasgui import show
df = pd.read_excel('Data.xlsx')
gui = show(df, settings={'block': True})

from pandasgui.

Zombiesen avatar Zombiesen commented on August 16, 2024

Yes, that worked.. but shouldn't be this the default behavior?
After reading issue 22, i assumed that's what you did in the code, so that block:true became the default behavior even without explicitly declaring it.

In any case, this solved it.

from pandasgui.

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.