{"id":19468441,"url":"https://github.com/vladpunko/notebook-environments","last_synced_at":"2025-04-25T11:32:25.978Z","repository":{"id":57446836,"uuid":"363384533","full_name":"vladpunko/notebook-environments","owner":"vladpunko","description":"Manage python virtual environments on the working notebook server","archived":false,"fork":false,"pushed_at":"2024-02-29T22:13:31.000Z","size":2244,"stargazers_count":48,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T07:48:56.483Z","etag":null,"topics":["jupyter-kernels","jupyter-notebooks","macos-shell","python-modules","python-scripts","unix-shell"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/notebook-environments","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/vladpunko.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":"2021-05-01T10:39:37.000Z","updated_at":"2025-02-18T13:47:12.000Z","dependencies_parsed_at":"2022-09-05T09:40:49.883Z","dependency_job_id":"a102524f-2235-4b8b-aca1-066458f49403","html_url":"https://github.com/vladpunko/notebook-environments","commit_stats":{"total_commits":20,"total_committers":1,"mean_commits":20.0,"dds":0.0,"last_synced_commit":"e8530249be235af826e10f657e2d7f619c92adf2"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladpunko%2Fnotebook-environments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladpunko%2Fnotebook-environments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladpunko%2Fnotebook-environments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladpunko%2Fnotebook-environments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vladpunko","download_url":"https://codeload.github.com/vladpunko/notebook-environments/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250808344,"owners_count":21490650,"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":["jupyter-kernels","jupyter-notebooks","macos-shell","python-modules","python-scripts","unix-shell"],"created_at":"2024-11-10T18:41:09.761Z","updated_at":"2025-04-25T11:32:25.451Z","avatar_url":"https://github.com/vladpunko.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# notebook-environments\n\n![hooks](https://github.com/vladpunko/notebook-environments/actions/workflows/hooks.yml/badge.svg)\n![tests](https://github.com/vladpunko/notebook-environments/actions/workflows/tests.yml/badge.svg)\n\nManage python virtual environments on the working notebook server.\n\n![usage-example](https://raw.githubusercontent.com/vladpunko/notebook-environments/master/notebook_environments.gif)\n\n## Installation\n\nIt is recommended to use this package together with [virtualenv](https://github.com/pypa/virtualenv) and [virtualenvwrapper](https://bitbucket.org/virtualenvwrapper/virtualenvwrapper) to work with python virtual environments more suitable. Make sure the installed [python](https://wiki.archlinux.org/title/python) interpreters work without errors on the current operating system. To install this package as a standalone application with the command-line interface you are to run the following command:\n\n```bash\nsudo sh -c \"$(curl https://raw.githubusercontent.com/vladpunko/notebook-environments/master/install.sh)\"\n```\n\nUse the package manager [pip](https://pip.pypa.io/en/stable) to install notebook-environments without the command-line interface:\n\n```bash\npython3 -m pip install notebook-environments\n```\n\nYou can also install this python package on your working machine (works for unix-like operating systems) from source code to `/usr/local/bin` as the standard system location for user's programs (this location can be changed at the user's discretion):\n\n```bash\n# Step -- 1.\ngit clone --depth=1 --branch=master https://github.com/vladpunko/notebook-environments.git\n\n# Step -- 2.\ncd ./notebook-environments/\n\n# Step -- 3.\nsudo install -m 755 n.sh /usr/local/bin/n\n\n# Step -- 4.\nsudo install -m 755 notebook_environments.py /usr/local/bin/notebook-environments\n```\n\n## Basic usage\n\nUsing this program allows you to run one instance of [notebook](https://github.com/jupyter/notebook) server on your working machine and add different python virtual environments as needed.\nIt protects you from the trouble of installing notebook packages in a new environment and running multiple servers.\n\n```bash\n# Step -- 1.\nnohup jupyter notebook \u003e /tmp/notebook.log 2\u003e\u00261 \u0026\n\n# Step -- 2.\npython3 -m venv .venv \u0026\u0026 source ./.venv/bin/activate \u0026\u0026 notebook-environments --add\n\n# Step -- 3.\nnotebook-environments --show\n```\n\n## Contributing\n\nPull requests are welcome.\nPlease open an issue first to discuss what should be changed.\n\nPlease make sure to update tests as appropriate.\n\n```bash\n# Step -- 1.\npython3 -m venv .venv \u0026\u0026 source ./.venv/bin/activate \u0026\u0026 pip install pre-commit tox\n\n# Step -- 2.\npre-commit install --config .githooks.yml\n\n# Step -- 3.\ntox \u0026\u0026 tox -e lint\n```\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladpunko%2Fnotebook-environments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvladpunko%2Fnotebook-environments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladpunko%2Fnotebook-environments/lists"}