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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional halt cell execution until file selected #66

Open
jesseengel opened this issue Apr 19, 2022 · 2 comments
Open

Optional halt cell execution until file selected #66

jesseengel opened this issue Apr 19, 2022 · 2 comments

Comments

@jesseengel
Copy link

Hi, nice plugin!

I was wondering if there would be a way to halt the execution of the cell until a file is selected / callback activated. This would be helpful for situations where you are executing cells in order, and don't want the next cell to run until the filechooser has done its thing. I tried put a while loop with sleep until the callback happens, but then can't interact with the file chooser.

@crahan
Copy link
Owner

crahan commented Apr 21, 2022

I'm not sure if widgets have the ability to interact with the notebook itself in that way. I'd be happy to investigate some options if you have come across any.

@ghost
Copy link

ghost commented Jun 26, 2023

Anyone had any thoughts on how to achieve this? I'm writing an application which will be run exclusively in a jupyter notebook. I need the user to input a path to a file in a friendly way. There's no possibility of a proper gui so Tkinter won't work for this, and I really like ipyfilechooser, but want to get it to wait for the user selection, much like input() would.

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

2 participants