{"id":17352338,"url":"https://github.com/mwcraig/ipywidgets-examples","last_synced_at":"2025-03-27T12:45:40.740Z","repository":{"id":145021789,"uuid":"73560347","full_name":"mwcraig/ipywidgets-examples","owner":"mwcraig","description":"A short example illustrating how to build a pure-python jupyter widget","archived":false,"fork":false,"pushed_at":"2017-06-20T17:01:05.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T17:22:34.213Z","etag":null,"topics":["ipywidgets","jupyter-widget"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mwcraig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-11-12T15:21:36.000Z","updated_at":"2022-07-30T02:40:58.000Z","dependencies_parsed_at":"2023-05-02T05:01:57.218Z","dependency_job_id":null,"html_url":"https://github.com/mwcraig/ipywidgets-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwcraig%2Fipywidgets-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwcraig%2Fipywidgets-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwcraig%2Fipywidgets-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwcraig%2Fipywidgets-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mwcraig","download_url":"https://codeload.github.com/mwcraig/ipywidgets-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245850257,"owners_count":20682636,"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":["ipywidgets","jupyter-widget"],"created_at":"2024-10-15T17:13:32.506Z","updated_at":"2025-03-27T12:45:40.707Z","avatar_url":"https://github.com/mwcraig.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jupyter widget example\n\nThis is intended as a straightforward example of how to build a pure-python widget that uses a Model-View-Controller design. It works with [ipywidgets](http://ipywidgets.readthedocs.io/en/latest/index.html) `5+` and [traitlets](http://traitlets.readthedocs.io/en/stable/) `4.1+`. This is not currently packaged for installation via pypi. Instead, download it as a zip from github, or, even better, clone it and improve it!\n\nThe widget is a simple password generator.\n\nThe file `model.py` contains the data model: a class that has as [traitlet](http://traitlets.readthedocs.io/en/stable/) properties the parameters that go into generating the password and a method for doing the generation based on the parameters. The `observe` decorator indicates which method gets called when properties of the widgets change because the user has adjusted them; this is one piece of the controller.\n\nThe file `gui.py` does two things: set up the actual widgets (the view) and link properties of the widget elements to traits in the model (one piece of the controller).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwcraig%2Fipywidgets-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmwcraig%2Fipywidgets-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwcraig%2Fipywidgets-examples/lists"}