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

Auto-setup cluster for users #143

Open
TomAugspurger opened this issue Dec 9, 2019 · 7 comments
Open

Auto-setup cluster for users #143

TomAugspurger opened this issue Dec 9, 2019 · 7 comments

Comments

@TomAugspurger
Copy link
Member

We'd like to use the distributed dashboard without necessarily exposing the user to dask.distributed, Client, or schedulers. How can we do that?

Presumably, we can execute a bit of code in the background for the user via jupyterlab. We would need

  1. Start a Dask cluster, either one time when jupyterlab is launched, or when each notebook is opened and a kernel is started.
  2. Create a client in each kernel session.
@mrocklin
Copy link
Member

mrocklin commented Dec 9, 2019 via email

@mrocklin
Copy link
Member

mrocklin commented Dec 9, 2019 via email

@TomAugspurger
Copy link
Member Author

TomAugspurger commented Dec 9, 2019 via email

@mrocklin
Copy link
Member

mrocklin commented Dec 9, 2019 via email

@TomAugspurger
Copy link
Member Author

Thanks. I think I'm struggling a bit with how to "distribute" this config setting. I think this will be fine for running the tutorial on binder. We'll just dump

{
    "dask-labextension:plugin" {
        "autoStartClient": true
    }
}

in the right location.

I'm struggling a bit with when users are running this locally. @ian-r-rose, do you know if it's possible to override jupyterlab settings from the command line? Ideally, we just have overrides.json in this repository, and instruct people running it locally to start their server with jupyter lab --settings=overrides.json (--settings doesn't exist though). There is a --config though.

@TomAugspurger
Copy link
Member Author

Hmm, we could make the tutorial a jupyterlab "app" and have them run jupyter lab --app-dir=. or something like that. Will see if it's possible t3o do that.

@ian-r-rose
Copy link
Contributor

@TomAugspurger I don't think there is a good way to override specific settings from the CLI using a JSON file. You can, however, point to a custom settings directory, either by setting a new "app" directory as you suggest, or by setting the JUPYTERLAB_SETTINGS_DIR environment variable: https://github.com/jupyterlab/jupyterlab/blob/a1fc14a5971c780a385ed994c1fa99e9d3ed6730/jupyterlab/commands.py#L122-L129

And the restart issue has now been bumped in my personal queue.

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

3 participants