{"id":20456543,"url":"https://github.com/krassowski/jupyterlab-dagitty","last_synced_at":"2026-03-16T15:39:07.753Z","repository":{"id":50519559,"uuid":"518868464","full_name":"krassowski/jupyterlab-dagitty","owner":"krassowski","description":"JupyterLab renderer of dagitty causal diagrams","archived":false,"fork":false,"pushed_at":"2023-10-06T22:03:27.000Z","size":1532,"stargazers_count":22,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T04:05:02.358Z","etag":null,"topics":["causal-inference","causal-models","directed-acyclic-graph","ipython-display","irkernel","jupyterlab-extension"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krassowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-28T13:59:10.000Z","updated_at":"2025-03-18T08:48:24.000Z","dependencies_parsed_at":"2025-01-13T18:43:28.007Z","dependency_job_id":"fd12a775-0f5c-4cdd-830e-3cf8abb00a1b","html_url":"https://github.com/krassowski/jupyterlab-dagitty","commit_stats":{"total_commits":28,"total_committers":2,"mean_commits":14.0,"dds":0.1428571428571429,"last_synced_commit":"e0ce20596f35784b2535f37b6ecc2af1f8f23f47"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krassowski%2Fjupyterlab-dagitty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krassowski%2Fjupyterlab-dagitty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krassowski%2Fjupyterlab-dagitty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krassowski%2Fjupyterlab-dagitty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krassowski","download_url":"https://codeload.github.com/krassowski/jupyterlab-dagitty/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248661707,"owners_count":21141450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["causal-inference","causal-models","directed-acyclic-graph","ipython-display","irkernel","jupyterlab-extension"],"created_at":"2024-11-15T11:23:01.421Z","updated_at":"2026-03-16T15:39:07.706Z","avatar_url":"https://github.com/krassowski.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jupyterlab-dagitty\n\n![Github Actions Status](https://github.com/krassowski/jupyterlab-dagitty/workflows/Build/badge.svg)\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/krassowski/jupyterlab-dagitty/main?urlpath=lab/tree/examples/car_model_driver.dag)\n[![PyPI version](https://img.shields.io/pypi/v/jupyterlab-dagitty.svg)](https://pypi.org/project/jupyterlab-dagitty/)\n\nA JupyterLab extension for rendering [dagitty](http://dagitty.net/) DAG files (`.dag` or `.dagitty`),\n[Python](https://mybinder.org/v2/gh/krassowski/jupyterlab-dagitty/main?urlpath=lab/tree/examples/Python_demo.ipynb) and\n[R](https://mybinder.org/v2/gh/krassowski/jupyterlab-dagitty/main?urlpath=lab/tree/examples/R_demo.ipynb)\nnotebooks. This extension will also work with upcoming Jupyter Notebook v7+.\n\n![Screenshot of rendered DAG][screenshot]\n\n[screenshot]: https://raw.githubusercontent.com/krassowski/jupyterlab-dagitty/main/docs/images/screenshot.png\n\nIn addition to built-in `dagitty` interactions (moving nodes and edges), you can use:\n- \u003ckbd\u003eCtrl\u003c/kbd\u003e + mouse wheel to zoom in/out,\n- \u003ckbd\u003eCtrl\u003c/kbd\u003e + mouse click and drag to move the canvas,\n- resize the plot by dragging bottom-right corner.\n\nYou can also make the plot mutable to add nodes or edges (although changes will not be saved).\n\n## Requirements\n\n* JupyterLab \u003e= 3.0\n\n## Install\n\n```bash\npip install jupyterlab-dagitty\n```\n\n## Contributing\n\n### Development install\n\nNote: You will need NodeJS to build the extension package.\n\nThe `jlpm` command is JupyterLab's pinned version of\n[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use\n`yarn` or `npm` in lieu of `jlpm` below.\n\n```bash\n# Clone the repo to your local environment\n# Change directory to the jupyterlab-dagitty directory\n# Build dagity distribution (bash script)\nbash build_dagitty.sh\n# Install package in development mode\npip install -e .\n# Link your development version of the extension with JupyterLab\njupyter labextension develop . --overwrite\n# Rebuild extension Typescript source after making changes\njlpm run build\n```\n\nYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.\n\n```bash\n# Watch the source directory in one terminal, automatically rebuilding when needed\njlpm run watch\n# Run JupyterLab in another terminal\njupyter lab\n```\n\nWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).\n\nBy default, the `jlpm run build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:\n\n```bash\njupyter lab build --minimize=False\n```\n\n### Uninstall\n\n```bash\npip uninstall jupyterlab-dagitty\njupyter labextension uninstall jupyterlab-dagitty\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrassowski%2Fjupyterlab-dagitty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrassowski%2Fjupyterlab-dagitty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrassowski%2Fjupyterlab-dagitty/lists"}