{ "info": { "author": "Davide Sarra", "author_email": "", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Framework :: IPython", "Framework :: Jupyter", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# Jupyter Spaces\n\n[![Build Status](https://travis-ci.org/davidesarra/jupyter_spaces.svg?branch=master)](https://travis-ci.org/davidesarra/jupyter_spaces)\n[![codecov](https://codecov.io/gh/davidesarra/jupyter_spaces/branch/master/graph/badge.svg)](https://codecov.io/gh/davidesarra/jupyter_spaces)\n[![Supported Python Versions](https://img.shields.io/pypi/pyversions/jupyter_spaces.svg)](https://pypi.org/project/jupyter_spaces/)\n\nJupyter Spaces is an IPython extension for creating parallel namespaces\navailable within the user namespace. It is designed to be used via IPython\nmagics in Jupyter notebooks.\n\n## Installation\n\n```bash\npip install jupyter_spaces\n```\n\n`jupyter_spaces` supports Python versions `3.4`, `3.5`, `3.6` and `3.7`.\n\n## Usage\n\n### Load `jupyter_spaces` extension\n\n```python\n%load_ext jupyter_spaces\n```\n\n### Reload `jupyter_spaces` extension\n\n```python\n%reload_ext jupyter_spaces\n```\n\nReloading the extension will remove all spaces.\n\n### Run a cell within a space\n\n```python\n%%space \nalpha = 0.50\nprint(alpha)\n```\n\nWhen you execute a cell within a space, all references are firstly searched in\nthe space namespace and secondly in the user namespace. All assignments are\nmade in the space namespace.\n\nTrying to delete a user namespace reference will raise an error. Trying to\naffect a user namespace reference using the keyword `global` will produce an\nexecution equivalent to not using such keyword.\n\nMutable objects in the user namespace can be altered (e.g. appending an item\nto a list).\n\n#### Console output\n\nConversely to the standard usage of the Python console, you need to print\nobjects explicitly (e.g. by using `print`).\n\n- No output to console\n ```python\n %%space \n 100\n ```\n- Output to console\n ```python\n %%space \n print(100)\n ```\n\nIf you want IPython to use more advanced representations, you can do so via\nIPython's display library (e.g. display a Pandas dataframe as a HTML table).\n\n```python\n%%space \nfrom IPython.display import display\nfrom pandas import DataFrame\ndataframe = DataFrame(data=[[1, 2]])\ndisplay(dataframe)\n```\n\n### Remove a space\n\n```python\n%remove_space \n```\n\n### Access all spaces at once\n\nYou can access all the spaces' namespaces at once without using any magic.\nThis might be useful to jointly post-process or compare the spaces' contents.\n\n```python\nfrom jupyter_spaces import get_spaces\n\nspaces = get_spaces()\nspace = spaces[]\nreference = space.namespace[]\n```\n\n`Space` objects have two properties:\n\n- `name` the name of the space\n- `namespace` a dictionary with the namespace of the space\n\nModifying the spaces via `get_spaces` will actually modify the underlying\nspaces.\n\n## Acknowledgements\n\nMany thanks to [Yeray Diaz Diaz](https://github.com/yeraydiazdiaz) and\n[Karol Duleba](https://github.com/mrfuxi)!\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/davidesarra/jupyter_spaces", "keywords": "jupyter ipython magic extension namespace", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "jupyter-spaces", "package_url": "https://pypi.org/project/jupyter-spaces/", "platform": "", "project_url": "https://pypi.org/project/jupyter-spaces/", "project_urls": { "Homepage": "https://github.com/davidesarra/jupyter_spaces" }, "release_url": "https://pypi.org/project/jupyter-spaces/0.1.2/", "requires_dist": [ "ipython (>=5.0.0)" ], "requires_python": "~=3.4", "summary": "Create parallel namespaces in Jupyter Notebooks", "version": "0.1.2" }, "last_serial": 4079142, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "bb9eff6bda2ff419f4d63216870554a4", "sha256": "cc7458bdb72004bdb48c7353025f6b2068d13ba10885edababf0978e5c92d3ed" }, "downloads": -1, "filename": "jupyter_spaces-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "bb9eff6bda2ff419f4d63216870554a4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.4", "size": 4563, "upload_time": "2018-04-10T18:58:27", "url": "https://files.pythonhosted.org/packages/2a/4b/b6764189aa4aca46daf2aefd94f05dbf809a85d3acb458ad97d36093f5de/jupyter_spaces-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3b98ee7a08489ca26d24866daa3b3c62", "sha256": "1526d2f8db000a19cd2947912c1398334fd3895d25227d90cd061e460bec45fc" }, "downloads": -1, "filename": "jupyter_spaces-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3b98ee7a08489ca26d24866daa3b3c62", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.4", "size": 4560, "upload_time": "2018-04-10T18:58:28", "url": "https://files.pythonhosted.org/packages/cc/0d/31bdc73c9120321deb881ebd6e32e050a4b31d641e12f7275495b21c81be/jupyter_spaces-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "61600aa7147a84f07b65c2b4fb8d6c23", "sha256": "cb0f1e7b73f1b3001d60b608d1899ff91bcc27fb1ff72caf6e2d9bc0d3547c33" }, "downloads": -1, "filename": "jupyter_spaces-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "61600aa7147a84f07b65c2b4fb8d6c23", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.4", "size": 4565, "upload_time": "2018-04-14T07:40:03", "url": "https://files.pythonhosted.org/packages/0c/1a/6364068b3baf6607fc7e049caeb55bc440cb04cfe888808131a77ec55f2b/jupyter_spaces-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "769a542b840d38d4f4fa0d41d3be6abc", "sha256": "8d0fc7b064f5a37933d558d6ed3a4e46b30c9be4044eab967dad64818745d176" }, "downloads": -1, "filename": "jupyter_spaces-0.0.2.tar.gz", "has_sig": false, "md5_digest": "769a542b840d38d4f4fa0d41d3be6abc", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.4", "size": 4572, "upload_time": "2018-04-14T07:40:04", "url": "https://files.pythonhosted.org/packages/80/28/2fb44d3101ca46a485c93198b54cba641efc6095d170e94d67f04367629d/jupyter_spaces-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "903ec9a22814cdb6f66a69b2a0262018", "sha256": "c6a9a37ce3571135c574facb66f3fe6cc2752a55dbf6cfbd5d915e1bc5041dbe" }, "downloads": -1, "filename": "jupyter_spaces-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "903ec9a22814cdb6f66a69b2a0262018", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.4", "size": 4699, "upload_time": "2018-04-15T18:42:45", "url": "https://files.pythonhosted.org/packages/e9/e7/0bcf443cd0152a4ee224c61b95b9fc8f5bbf6e0689c94bccdcaa56634111/jupyter_spaces-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "276264c3daa7d7b5e0539df8bcde7696", "sha256": "637fb796075e7011b59187793ed91e2c26b4c895533a5073d66a6bffefee0a02" }, "downloads": -1, "filename": "jupyter_spaces-0.0.3.tar.gz", "has_sig": false, "md5_digest": "276264c3daa7d7b5e0539df8bcde7696", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.4", "size": 4735, "upload_time": "2018-04-15T18:42:47", "url": "https://files.pythonhosted.org/packages/21/0a/b192bb3d37ca8e102bef5ece6dc6a99f04f04d12e7336077873f23dd4b1e/jupyter_spaces-0.0.3.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "437bb5c3a965c31ca491e512e05d23ac", "sha256": "ae3c39b6931a2c03f6d0f2d19113b9f771dc9f1b4b02f11f06761f2fce4924f8" }, "downloads": -1, "filename": "jupyter_spaces-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "437bb5c3a965c31ca491e512e05d23ac", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.4", "size": 4863, "upload_time": "2018-04-30T18:23:27", "url": "https://files.pythonhosted.org/packages/7c/2b/e3f285fd727ae7d276351102899bb1a7eed2c53ac59f49545e1a97c81cc3/jupyter_spaces-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "81f933252827adb590b855734b8afeea", "sha256": "6930bc097a890f0030a1f67d066c876a4b94e1f247c27fbe663ea15727874c7d" }, "downloads": -1, "filename": "jupyter_spaces-0.1.0.tar.gz", "has_sig": false, "md5_digest": "81f933252827adb590b855734b8afeea", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.4", "size": 4940, "upload_time": "2018-04-30T18:23:28", "url": "https://files.pythonhosted.org/packages/51/df/28ce32523e4f6debde988498fe802c1d153607d4935046f12e8d03e0fd28/jupyter_spaces-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "bf5268320c61332eed86fadd97f8caa6", "sha256": "1041cd7b55584888885ead07952767e5c509314b6b76c8b0faa6b1c6c729f902" }, "downloads": -1, "filename": "jupyter_spaces-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "bf5268320c61332eed86fadd97f8caa6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.4", "size": 5015, "upload_time": "2018-06-06T08:21:43", "url": "https://files.pythonhosted.org/packages/60/5f/5f060e17c00899ba6a2c6142b09842ea14238a91e30302fc266aac951996/jupyter_spaces-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "af654f45afc165b432b42c1c4ce72624", "sha256": "b9aff3999f3c4bddbba301e8c9e6e64660d096658069850f15742b36f793a429" }, "downloads": -1, "filename": "jupyter_spaces-0.1.1.tar.gz", "has_sig": false, "md5_digest": "af654f45afc165b432b42c1c4ce72624", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.4", "size": 5110, "upload_time": "2018-06-06T08:21:44", "url": "https://files.pythonhosted.org/packages/5d/cf/2e1b8d456dfc37055232dd8c6715c872541f15a94a1044a052d208ffc28c/jupyter_spaces-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "0786d2e7e050e076c14acdc5cf0310fa", "sha256": "19a2e0175e0b12e5ab791f63beff1c3e8d745194ac96c36dfd8ba6a25b6b435e" }, "downloads": -1, "filename": "jupyter_spaces-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0786d2e7e050e076c14acdc5cf0310fa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.4", "size": 5017, "upload_time": "2018-07-18T17:44:28", "url": "https://files.pythonhosted.org/packages/70/b9/9a113813db24c85138b840fabbc6d02df1ac2b9dba7a34179143f753caf1/jupyter_spaces-0.1.2-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0786d2e7e050e076c14acdc5cf0310fa", "sha256": "19a2e0175e0b12e5ab791f63beff1c3e8d745194ac96c36dfd8ba6a25b6b435e" }, "downloads": -1, "filename": "jupyter_spaces-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0786d2e7e050e076c14acdc5cf0310fa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.4", "size": 5017, "upload_time": "2018-07-18T17:44:28", "url": "https://files.pythonhosted.org/packages/70/b9/9a113813db24c85138b840fabbc6d02df1ac2b9dba7a34179143f753caf1/jupyter_spaces-0.1.2-py3-none-any.whl" } ] }