{"id":16525608,"url":"https://github.com/camdavidsonpilon/startupfiles","last_synced_at":"2025-07-05T17:33:12.324Z","repository":{"id":25049905,"uuid":"28469810","full_name":"CamDavidsonPilon/StartupFiles","owner":"CamDavidsonPilon","description":"My IPython startup files. ","archived":false,"fork":false,"pushed_at":"2015-02-16T23:45:13.000Z","size":301,"stargazers_count":109,"open_issues_count":0,"forks_count":18,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-18T19:52:28.734Z","etag":null,"topics":[],"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/CamDavidsonPilon.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":"2014-12-25T03:41:44.000Z","updated_at":"2024-04-23T23:02:47.000Z","dependencies_parsed_at":"2022-08-23T12:00:39.057Z","dependency_job_id":null,"html_url":"https://github.com/CamDavidsonPilon/StartupFiles","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/CamDavidsonPilon%2FStartupFiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CamDavidsonPilon%2FStartupFiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CamDavidsonPilon%2FStartupFiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CamDavidsonPilon%2FStartupFiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CamDavidsonPilon","download_url":"https://codeload.github.com/CamDavidsonPilon/StartupFiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221667210,"owners_count":16860570,"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":[],"created_at":"2024-10-11T17:04:18.125Z","updated_at":"2024-10-27T11:09:10.977Z","avatar_url":"https://github.com/CamDavidsonPilon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Startup Files\n=====================\n\nThis is inspired by all the really awesome [dotfile](https://github.com/search?o=desc\u0026q=dotfiles\u0026ref=simplesearch\u0026s=stars\u0026type=Repositories\u0026utf8=%E2%9C%93) repos available. We need an ecosystem like this for Python. \n\n### Introduction\n\nIPython has a feature that allows you to run scripts *before* the console starts. From IPython docs:\n\n\u003e This is the IPython startup directory\n\n\u003e .py and .ipy files in this directory will be run *prior* to any code or files specified\n via the exec_lines or exec_files configurables whenever you load this profile.\n\n\u003e Files will be run in lexicographical order, so you can control the execution order of files\nwith a prefix, e.g.::\n\n\u003e    00-first.py\n    50-middle.py\n    99-last.ipy\n\nThis repo contains my IPython startup files that I've found to be timesaving for my workflow.\n\n### How it works\n\n#### First, who is this for?\n\nMy startup scripts are focused on data analysis and prototyping enviroments, as this is my primary purpose for using Python and IPython. I have lots of examples in the `startup` folder that can be used as ag starting place for other IPython workflows. \n\nThere is a `requirements.txt` file because some of my imports are external libraries.\n\n#### Installation\n\nFirst, clone the repo:\n\n```\ngit clone https://github.com/CamDavidsonPilon/StartupFiles.git\n```\n\n#### Create Symlinks\n\nThe contents in `startup` should be added to `~/.ipython/\u003cyour_profile\u003e/startup`. One method to do this is to create a symlink between `~/.ipython/\u003cprofile\u003e/startup` and the `startup` folder in this repo. The script `build_symlink` will do just that:\n\n```\n./bin/build_symlink\n```\n\nwill replace the `default` profile's `startup` with symlinks to the local repo. Alternatively, you can run\n\n```\n./bin/build_symlink --profile \u003cprofile\u003e\n```\nto use an different profile to symlink too. \n\n\n#### Building your own\n\nIncluded is a script, `./bin/ipython_analysis`, to query your IPython sqlite database. Yes, IPython stores all your commands in a sqlite database. This script will return suggestions for you to add to your startup scripts. \n\n![ipython](http://i.imgur.com/g1ao9yW.gif)\n\n-------\n\n### New %Magic Commands Included in this Repo\n\n#### %pyplot\nGet the best pieces of matplotlib, plus some extras. \n\n![pyplotgif](http://i.imgur.com/vMWnnmx.gif)\n\n-------\n\n#### %pase, %past, %pate\nAre all alias to `%paste`, my most common IPython command and the one I mess up the most. \n\n![paste_gif](http://i.imgur.com/6dK9Q3R.gif)\n\n-------\n\n#### %lifelines and %stats\nThe former for development work on *lifelines*, the latter for general statistical work. I might add sklearn stuff here.\n\n![statsgif](http://i.imgur.com/i4Zxcf3.gif)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamdavidsonpilon%2Fstartupfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcamdavidsonpilon%2Fstartupfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamdavidsonpilon%2Fstartupfiles/lists"}