{"id":13578810,"url":"https://github.com/patarapolw/pyhandsontable","last_synced_at":"2025-10-09T10:12:50.275Z","repository":{"id":62580823,"uuid":"142064668","full_name":"patarapolw/pyhandsontable","owner":"patarapolw","description":"View a list of JSON-serializable dictionaries or a 2-D array, in HandsOnTable, in Jupyter Notebook.","archived":false,"fork":false,"pushed_at":"2018-10-11T08:30:50.000Z","size":1293,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-20T04:53:05.733Z","etag":null,"topics":["handsontable","jupyter-notebook"],"latest_commit_sha":null,"homepage":"","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/patarapolw.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}},"created_at":"2018-07-23T20:16:05.000Z","updated_at":"2024-01-31T15:52:58.000Z","dependencies_parsed_at":"2022-11-03T21:15:31.073Z","dependency_job_id":null,"html_url":"https://github.com/patarapolw/pyhandsontable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patarapolw/pyhandsontable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patarapolw%2Fpyhandsontable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patarapolw%2Fpyhandsontable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patarapolw%2Fpyhandsontable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patarapolw%2Fpyhandsontable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patarapolw","download_url":"https://codeload.github.com/patarapolw/pyhandsontable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patarapolw%2Fpyhandsontable/sbom","scorecard":{"id":721747,"data":{"date":"2025-08-11","repo":{"name":"github.com/patarapolw/pyhandsontable","commit":"40a6886f3ca1eec9e7b54aebd354da152ab63940"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-22T11:34:15.322Z","repository_id":62580823,"created_at":"2025-08-22T11:34:15.322Z","updated_at":"2025-08-22T11:34:15.322Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001323,"owners_count":26083040,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["handsontable","jupyter-notebook"],"created_at":"2024-08-01T15:01:33.985Z","updated_at":"2025-10-09T10:12:50.230Z","avatar_url":"https://github.com/patarapolw.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# pyhandsontable\n\n[![Build Status](https://travis-ci.org/patarapolw/pyhandsontable.svg?branch=master)](https://travis-ci.org/patarapolw/pyhandsontable)\n[![PyPI version shields.io](https://img.shields.io/pypi/v/pyhandsontable.svg)](https://pypi.python.org/pypi/pyhandsontable/)\n[![PyPI license](https://img.shields.io/pypi/l/pyhandsontable.svg)](https://pypi.python.org/pypi/pyhandsontable/)\n[![PyPI pyversions](https://img.shields.io/pypi/pyversions/pyhandsontable.svg)](https://pypi.python.org/pypi/pyhandsontable/)\n\nView a list of JSON-serializable dictionaries or a 2-D array, in HandsOnTable, in Jupyter Notebook.\n\nNested JSON renderer is also supported and is default. Image and markdown renderers are possible, but has to be extended.\n\n## Installation\n\n```commandline\npip install pyhandsontable\n```\n\n## Usage\n\nIn Jupyter Notebook,\n\n```python\n\u003e\u003e\u003e from pyhandsontable import PagedViewer\n\u003e\u003e\u003e viewer = PagedViewer(data=data_matrix, **kwargs)\n\u003e\u003e\u003e viewer\n'A Handsontable is shown in Jupyter Notebook.'\n\u003e\u003e\u003e viewer.view(-1)\n'The last page is shown.'\n\u003e\u003e\u003e viewer.previous()\n'The previous page (i-1) is shown.'\n\u003e\u003e\u003e viewer.next()\n'The next page (i+1) is shown.'\n```\n\nData matrix can be either a list of lists (2-D array) or a list of dictionaries.\n\nIt is also possible to view all entries at once, but it could be bad, if there are too many rows.\n\n```python\n\u003e\u003e\u003e from pyhandsontable import view_table\n\u003e\u003e\u003e view_table(data_matrix, **kwargs)\n```\n\n## Acceptable kwargs\n\n- height: height of the window (default: 500)\n- width: width of the window (default: 1000)\n- title: title of the HTML file\n- maxColWidth: maximum column width. (Default: 200)\n- renderers: the renderers to use in generating the columns (see below.)\n- autodelete: whether the temporary HTML file should be autodeleted. (Default: True)\n- filename: filename of the temporary HTML file (default: 'temp.handsontable.html')\n- config: add additional config as defined in https://docs.handsontable.com/pro/5.0.0/tutorial-introduction.html\n  - This will override the default config (per key basis) which are:\n  \n```javascript\n{\n    data: data,\n    rowHeaders: true,\n    colHeaders: true,\n    columns: columns,\n    manualColumnResize: true,\n    manualRowResize: true,\n    renderAllRows: true,\n    modifyColWidth: (width, col)=\u003e{\n        if(width \u003e maxColWidth) return maxColWidth;\n    },\n    afterRenderer: (td, row, column, prop, value, cellProperties)=\u003e{\n        td.innerHTML = '\u003cdiv class=\"wrapper\"\u003e\u003cdiv class=\"wrapped\"\u003e' + td.innerHTML + '\u003c/div\u003e\u003c/div\u003e';\n    }\n}\n```\n\n`renderers` example, if your data is a 2-D array:\n\n```python\n{\n    1: 'html',\n    2: 'html'\n}\n```\n\nor if your data is list of dict:\n\n```python\n{\n    \"front\": 'html',\n    \"back\": 'html'\n}\n```\n\n## Enabling Image, HTML and Markdown renderer\n\nThis can be done in Python side, by converting everything to HTML. Just use [any markdown for Python library](https://github.com/Python-Markdown/markdown).\n\n```python\nfrom markdown import markdown\nimport base64\nimage_html = f'\u003cimg src=\"{image_url}\" width=100 /\u003e'\nimage_html2 = f'\u003cimg src=\"data:image/png;base64,{base64.b64encode(image_bytes).decode()}\" /\u003e'\nmarkdown_html = markdown(markdown_raw)\n```\n\nAny then,\n\n```python\nPagedViewer(data=data_matrix, renderers={\n    \"image_field\": \"html\",\n    \"html_field\": \"html\",\n    \"markdown_field\": \"html\"\n})\n```\n\n## Screenshots\n\n![1.png](/screenshots/1.png?raw=true)\n![0.png](/screenshots/0.png?raw=true)\n\n## Related projects\n\n- [htmlviewer](https://github.com/patarapolw/htmlviewer) - similar in concept to this project, but does not use HandsOnTable.js\n- [TinyDB-viewer](https://github.com/patarapolw/tinydb-viewer) - uses HandsOnTable.js and also allow editing in Jupyter Notebook. \n\n## License\n\nThis software includes [`handsontable.js`](https://github.com/handsontable/handsontable), which is MIT-licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatarapolw%2Fpyhandsontable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatarapolw%2Fpyhandsontable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatarapolw%2Fpyhandsontable/lists"}