{"id":20267223,"url":"https://github.com/dmsul/ipy-srun","last_synced_at":"2025-09-06T06:36:42.512Z","repository":{"id":86298142,"uuid":"157601045","full_name":"dmsul/ipy-srun","owner":"dmsul","description":"Magic command for IPython that calls `%run` then plays a sound when done.","archived":false,"fork":false,"pushed_at":"2018-12-05T02:08:55.000Z","size":416,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-03T21:43:25.463Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmsul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2018-11-14T19:36:52.000Z","updated_at":"2021-11-11T07:27:27.000Z","dependencies_parsed_at":"2023-03-13T09:36:47.705Z","dependency_job_id":null,"html_url":"https://github.com/dmsul/ipy-srun","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dmsul/ipy-srun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsul%2Fipy-srun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsul%2Fipy-srun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsul%2Fipy-srun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsul%2Fipy-srun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmsul","download_url":"https://codeload.github.com/dmsul/ipy-srun/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmsul%2Fipy-srun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273867755,"owners_count":25182423,"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-09-06T02:00:13.247Z","response_time":2576,"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":[],"created_at":"2024-11-14T12:13:49.614Z","updated_at":"2025-09-06T06:36:42.502Z","avatar_url":"https://github.com/dmsul.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `%srun`: IPython `%run` with sound!\n\nDo you get bored while waiting for scripts to finish?\nDo you wish there was some way IPython could *tell* you when it's done?\n\n**Wish no more!**\n\nThe new `%srun` magic command for IPython does just that! It calls the old\n`%run` magic command you know and love, but then it plays a WAV file when it's\nfinished!!!\n\n```ipython\nIn [1]: %srun my_long_script.py\nOut[1]: 'My output, but a loud WAV played so I know it's done!'\n```\n\nAll you have to do is clone and install this package by running\n\n```console\n$ git clone https://github.com/dmsul/ipy-srun\n$ cd ipy-srun\n$ python setup.py install \n```\n\njust like any other Python package. Then load the `srun` extension through your\nIPython configuration file or through the IPython terminal with `%load_ext\nsrun`. After that `%srun` is ready to be used!\n\n***NOTE***: `srun` only works on Windows right now because it uses the\n`winsound` library. If you would like to use it on Mac or Linux, a pull request\nwould be very welcome.\n\n## Configuring your sound!\n\nThe default sound is a voice saying \"Job's Done!\" An alternate sound included\nwith the package is an old Mac startup sound similar to\n[this](https://www.youtube.com/watch?v=i9qOJqNjalE). However, you can point\n`%srun` at any WAV file you want by adding your file to the `srun` directory,\nchanging the filename in the code, and re-installing the `srun` package. You\ncan also use system beeps instead of a WAV. (NOTE: ConEmu and CMDer suppress\nsystem beeps by default.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmsul%2Fipy-srun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmsul%2Fipy-srun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmsul%2Fipy-srun/lists"}