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

Allow for non-interactive use #9

Closed
knuesel opened this issue Nov 15, 2021 · 1 comment · Fixed by #12
Closed

Allow for non-interactive use #9

knuesel opened this issue Nov 15, 2021 · 1 comment · Fixed by #12

Comments

@knuesel
Copy link

knuesel commented Nov 15, 2021

It took me a while to figure out why my notebook was not executing properly: a cell was stuck showing an "stdin" input box. It turns out that PalmerPenguins.load() was waiting for user input to download the dataset.

Is this necessary? I expected the data to be downloaded silently. It seems to me that installing the PalmerPenguins package says clearly that I want to install the data. Asking for confirmation during the program executing seems like needless friction...

For context, I'm preparing a script for PackageCompiler to make a sysimage. I wanted to include a tutorial that uses the PalmerPenguins data as typical code that should be precompiled. The script should be executable in a new Julia installation without user input, but I'm not sure how to do that given this confirmation prompt.

@klaff
Copy link

klaff commented Nov 17, 2021

Using ENV["DATADEPS_ALWAYS_ACCEPT"] = true prior to loading the dataset may work.

See https://www.oxinabox.net/DataDeps.jl/stable/z40-apiref/#Base.download

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

Successfully merging a pull request may close this issue.

2 participants