{"id":14977139,"url":"https://github.com/wilmerwang/ipython-rtlogging","last_synced_at":"2025-07-15T12:09:11.782Z","repository":{"id":207709538,"uuid":"719891373","full_name":"wilmerwang/ipython-rtlogging","owner":"wilmerwang","description":" An optional solution to tackle the problem of losing cell outputs or not being able to monitor the progress of a running code after reconnecting to the Notebook.","archived":false,"fork":false,"pushed_at":"2023-11-23T09:53:25.000Z","size":890,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-25T13:21:12.433Z","etag":null,"topics":["ipython","ipython-magic","ipython-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/wilmerwang.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":"2023-11-17T05:49:34.000Z","updated_at":"2024-03-05T10:24:01.000Z","dependencies_parsed_at":"2024-09-11T12:31:51.673Z","dependency_job_id":"59ad4c02-3e9f-4e5d-9e78-d910087983bc","html_url":"https://github.com/wilmerwang/ipython-rtlogging","commit_stats":null,"previous_names":["wilmerwang/ipython-rtlogging"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilmerwang%2Fipython-rtlogging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilmerwang%2Fipython-rtlogging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilmerwang%2Fipython-rtlogging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilmerwang%2Fipython-rtlogging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wilmerwang","download_url":"https://codeload.github.com/wilmerwang/ipython-rtlogging/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219860467,"owners_count":16556017,"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":["ipython","ipython-magic","ipython-notebook"],"created_at":"2024-09-24T13:55:10.970Z","updated_at":"2024-10-11T14:43:51.215Z","avatar_url":"https://github.com/wilmerwang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ipython-rtlogging\n## Ipython Real Time Logging\n`ipython-rtlogging` is a tool that relies only on the Python standard library (except for IPython, Rich) and is used to capture and log the output streams of cells in real-time within IPython or IPython Notebook. It provides an optional solution to tackle the problem of losing cell outputs or not being able to monitor the progress of a running code after reconnecting to the Notebook.\n\n\nhttps://github.com/wilmerwang/ipython-rtlogging/assets/35020700/be3fa6e5-0d77-415b-a888-a3f70d1a7c12\n\n\n\n\n\n\n\n\n\n## Dependencies\n- ipython\n- rich\n\n## Install\nInstall the latest release with:\n```bash\npip install ipython-rtlogging\n```\n\nor download from [https://github.com/wilmerwang/ipython-rtlogging](https://github.com/wilmerwang/ipython-rtlogging) and:\n```bash\ncd ipython-rtlogging\npython3 setup.py install\n```\n## Examples\nPlease cheack [this notebook](doc/doc.ipynb)\n\n## Usage\nLoad rt_logging in IPython or IPython Notebook: \n```bash\nIn [1]: %load_ext rt_logging\n```\n\n---\n\nThen can use CLI to monitor the progress of a running code:\n```bash\n# Simaple usage\nrt_logging\n\n# OR Just list the running cell\nrt_logging -ls\n```\n\n---\n\nThere are some extesion magic method:\n```bash\nIn [2]: %%rt_logging?\n\nDocstring:\n::\n\n    %rt_logging [--no-stderr] [--no-stdout] [name] [buffering]\n\nrun the cell, print and redirect stdout, stderr calls.\n\npositional arguments:\n  name         File Name\n  buffering    buffering size, 1 to select line buffering. Same as\n               open(buffering)\n\noptional arguments:\n  --no-stderr  Dont capture stderr.\n  --no-stdout  Dont capture stdout.\n```\n\n---\n\n```bash\nIn [3]: %ls_logging?\nDocstring:\n::\n\n    %ls_logging [--ll]\n\nlist the all logging names\n\noptional arguments:\n  --ll  File Name to Load\n```\n---\n\n```bash\nIn [4]: %load_logging?\nDocstring:\n::\n\n  %load_logging [--name NAME] [--top TOP]\n\nload and print logging data\n\noptional arguments:\n  --name NAME  File Names to Load\n  --top TOP    top lines to Load\n```\n\n---\n\n```bash\nIn [5]: %rm_logging?\nDocstring:\n::\n\n  %rm_logging [--name NAME]\n\ndelete logging\n\noptional arguments:\n  --name NAME  File Name to Load\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilmerwang%2Fipython-rtlogging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilmerwang%2Fipython-rtlogging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilmerwang%2Fipython-rtlogging/lists"}