-
Notifications
You must be signed in to change notification settings - Fork 217
Dask
Notes about running a small Dask/Distributed cluster in a single CoCalc project for prototyping and educational use.
-
Create a terminal, e.g.
dask.term
-
Use the split buttons at the top right to split it horizontally and vertically into 4 panels.
-
Start the Scheduler in the first terminal panel
dask-scheduler
-
Start three works in the other 3 panels
dask-worker tcp://192.168.62.218:8786 --nthreads 1 --nprocs 1 --memory-limit 256M
Tipp: in each panel of the terminal, there is an icon with a "rocket". Click it to open up a startup initialization script of that very panel. Paste these commands right there, and the next time you start your project and open up that terminal (just keep that tab opened), these 4 commands will be run. That way, your little cluster is always spun up when you work in your project. If there is an issue, run Ctrl-c
and then Ctrl-d
to interrupt and exit the running instance. It will respan and run that init command again...
- Create a Jupyter Notebook, e.g.
dask.ipynb
.
In theory, it should be possible to open this URL to see it, but for unknown reasons the websocket connection fails to work on CoCalc.
Alternatively, create an X11 session (e.g. dask.x11
) and start chrome (google-chrome
) or firefox (firefox
) in the terminal. Then open the dashboard URL. If everything loads up fine, you'll see it here:
This Wiki is for CoCalc.com.
A more structured documentation is the CoCalc User Manual.
For further questions, please contact us.