{"id":18747433,"url":"https://github.com/fitoprincipe/ipyloading","last_synced_at":"2026-04-13T11:01:52.953Z","repository":{"id":136955128,"uuid":"165664455","full_name":"fitoprincipe/ipyloading","owner":"fitoprincipe","description":"Loading animations widgets (HTML + CSS) from https://loading.io/css/","archived":false,"fork":false,"pushed_at":"2019-01-14T13:46:19.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-20T09:06:55.796Z","etag":null,"topics":["ipython","ipython-notebook","python","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fitoprincipe.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":"2019-01-14T13:16:09.000Z","updated_at":"2020-11-15T13:11:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"d017cd66-a9a3-4a65-841d-8b9c629e8c57","html_url":"https://github.com/fitoprincipe/ipyloading","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fitoprincipe/ipyloading","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitoprincipe%2Fipyloading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitoprincipe%2Fipyloading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitoprincipe%2Fipyloading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitoprincipe%2Fipyloading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fitoprincipe","download_url":"https://codeload.github.com/fitoprincipe/ipyloading/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitoprincipe%2Fipyloading/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31749763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ipython","ipython-notebook","python","widget"],"created_at":"2024-11-07T16:29:45.548Z","updated_at":"2026-04-13T11:01:52.936Z","avatar_url":"https://github.com/fitoprincipe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Loading Widgets for Ipython Jupyter Notebook and Lab\n\nOpen source CSS Loading animations from [loading.io](https://loading.io/css/)\n\nIt uses `string.Template` for templates \n(https://docs.python.org/3.5/library/string.html)\n\nIt has 3 main parameters: `size`, `color`, and `background_color`. You can\nadd custom parameters in the subclass implementation.\n\nIt has three methods that can be overwritten by the subclasses in order to\nimplement custom css properties: `compute_size`, `compute_color` and\n`compute_background_color`. This methods must return a `dict` holding the\n'extra' parameters.\n\nAs an example, the `Ring` loading widget:\n\n    class Ring(Loading):\n        def __init__(self, border=None, **kwargs):\n            css = \"\"\"\n            .lds-ring {\n              display: inline-block;\n              position: relative;\n              width: ${width}px;\n              height: ${height}px;\n            }\n            .lds-ring div {\n              box-sizing: border-box;\n              display: block;\n              position: absolute;\n              width: ${inner_width}px;\n              height: ${inner_height}px;\n              margin: ${margin}px;\n              border: $border solid ${color};\n              border-radius: 50%;\n              animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n              border-color: ${color} transparent transparent transparent;\n              background-color: ${background_color};\n            }\n            .lds-ring div:nth-child(1) {\n              animation-delay: -0.45s;\n            }\n            .lds-ring div:nth-child(2) {\n              animation-delay: -0.3s;\n            }\n            .lds-ring div:nth-child(3) {\n              animation-delay: -0.15s;\n            }\n            @keyframes lds-ring {\n              0% {\n                transform: rotate(0deg);\n              }\n              100% {\n                transform: rotate(360deg);\n              }\n            }\n            \"\"\"\n            html = \"\"\"\n            \u003cdiv class=\"lds-ring\"\u003e\n              \u003cdiv\u003e\u003c/div\u003e\n              \u003cdiv\u003e\u003c/div\u003e\n              \u003cdiv\u003e\u003c/div\u003e\n              \u003cdiv\u003e\u003c/div\u003e\n            \u003c/div\u003e\n            \"\"\"\n            self.border = border\n            super(Ring, self).__init__(css=css, html=html, **kwargs)\n    \n        def compute_size(self, size):\n    \n            width = size\n            height = size\n            inner_width = int(size*0.8)\n            inner_height = int(size*0.8)\n            border = self.border if self.border else int(size*0.1)\n            margin = border\n            extra = dict(inner_width=inner_width, inner_height=inner_height,\n                         margin=margin, border=border, width=width, height=height)\n            return extra\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitoprincipe%2Fipyloading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffitoprincipe%2Fipyloading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitoprincipe%2Fipyloading/lists"}