Minimal Databricks bundle workspace with a single example:
hello_world_examplejobhello_world_example_pipelinepipeline
setup_python_env.batOptional model groups:
setup_python_env.bat --group activitysim
setup_python_env.bat --group populationsimNote: The default group is now activitysim. Running setup_python_env.bat without --group will install activitysim dependencies.
- Running ActivitySim - Complete guide for setting up and running ActivitySim models locally
Generate and upload example CSV:
setup_python_env.bat src\examples\01_local_upload_data.pyDeploy and run resources:
databricks bundle validate --target dev
databricks bundle deploy --target dev
databricks bundle run hello_world_example --target dev
databricks bundle run hello_world_example_pipeline --target devUse notebooks/hello-world.ipynb to run the same example interactively.
- In Databricks workspace, upload/open
notebooks/hello-world.ipynb. - Make sure these files exist in workspace paths used by the notebook:
/Workspace/Shared/bootstrap/00_bootstrap_env/Workspace/Shared/dependencies/requirements-standard.txt
- Attach serverless compute.
- Run Cell 1 (instructions), then Cell 2 (bootstrap), then Cell 3 (read latest CSV + print hello world).
Tip: run local upload first so the notebook has data to read:
setup_python_env.bat src\examples\01_local_upload_data.pyrequirements/requirements-standard.txtresources/jobs/hello_world_example.job.ymlresources/pipelines/hello_world_example.pipeline.ymlsrc/examples/01_local_upload_data.pysrc/examples/02_databrick_hello_world.pysrc/examples/03_run_activitysim.pysrc/examples/hello_world_pipeline.sqlnotebooks/hello-world.ipynbnotebooks/bootstrap/00_bootstrap_env.pydocs/RUN_ACTIVITYSIM.md