Scripts will run with VPython on the full-featured Domino Data Science Platform.
You need to remember to conclude session to have generated files be saved to your account, plus stop the company from complaining in your email. All final results of each session are archived for easy retrieval.
-
Sign in to your Domino Data Lab account.
Sirotkin lab accounts can sign in here. (Older accounts can sign in here.) -
After login, your page will look like below.
Select the/mainone that will show previous runs by clicking in the box with the/mainname the->arrow to the right.
- On the next screen, click
Runsin the panel on the left
until your screen looks something like below with a list of previous jobs in the middle with Run and Notebook buttons at the top.
- At the top of the middle panel, click the
Notebookbutton and selectJupyter.
- It should start running with a spinning icon on the left panel.
- To trigger the browser to open the running session, scroll down in panel on right after it starts running, and eventually you'll see a green button to
Open Session. Click on it.
- You'll be presented with a Jupyter Session Dashobard. Now you can click on an old notebook to open it or launch a new one like you would on the dashboard at
tmpnb.orgor other Jupyter sites.
For example, click on New in the upper right corner and select VPython.
- A notebook will open and it you'll see a cell in it, like below.
-
Now you can paste your code in the cell and then you should be all set to run the cell. To run the cell you can hit
shift-enterto run it. Alternatively, click on the "Play" button [►|] on the toolbar just above the notebook or selectCells>Runin the notebook menu. -
If you get a note in the notebook about
It doesn't appear your computer can support WebGL.when you try to run the script, the easiest thing is to change browsers. I find at home my version of Chrome inexplicably throws this error but Firefox doesn't. If you really wanto to address it and you are using Chrome, try activating graphics acceleration under advanced settings (Menu>Settings>Show Advanced Settings>System menu), as instructed here. You'll need to restart the browser after this. -
From the notebook, you can always go back to the Jupyter session dashboard by clicking the
Jupyterlogo at the top.
It is important on Domino to close your session. The stops your services and saves the data to the files in your Domino account. Otherwise the files are inaccessible while the session is running; you can verify files were created while the notebook session is running by typing ls in a cell of the notebook. They will be automatically migrated to an accessible location within your Domino Files when the session is concluded.
- Click in your browser to get back to the
Runscreen and chooseStopin the upper right corner.
- The Jupyter session will conclude and you'll see a green
View Resultsbutton at the bottom of the pane on the left. The final versions of any files generated during the run of the simulation will be linked to there, and the recent results will be stored in yourFilespage as the most recent version. (Don't worry too much about managing old files because, as discussed below, the final ouput of any properly-concluded session always remains accessible via the results of individual runs.)
-
You should also find the recently-generated files in your
Filespage, accessible from the left panel in the main Domino interface. -
From the
Filespage, download to your local computer anything you want by checking the box to the left of it and clicking theDownloadbutton above the list of files. Feel free to delete any script-generated result from here after you download it because you can always get it from the results of previous runs as discussed in the next bullet item; leave the other files intact, such asrequirements.txt. Or simply leave theFilespage untouched and use theView Resultsroute discussed next to access and download previous results.
- If you click on
Runsin the panel on the right, you can bring up in the middle panel all past runs. Clicking one of them will bring up at the bottom of the panel on the right the option toView Resultsof that previous run. You can download the files for these old (archived), final results using theDownloadbutton in the upper right frame surrounding each result.











