{ "info": { "author": "Albert Zeyer", "author_email": "albzey@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Run some IPython ZMQ kernel in the background, without an interactive shell.\nYou can connect to that kernel remotely via ZMQ.\n\nInstallation (`package is on PyPI `_)::\n\n pip install background_zmq_ipython\n\nUsage::\n\n import background_zmq_ipython\n background_zmq_ipython.init_ipython_kernel()\n\nThe kernel will then run in the background in its own thread.\nThe init will print some message similar to this on stdout::\n\n To connect another client to this IPython kernel, use:\n jupyter console --existing kernel-1111.json\n\nNow, after you connected, how to access globals from the main module? E.g. let's say there is a variable ``a``.\n\n* ``sys.modules[\"__main__\"].a`` should work.\n Via ``sys.modules``, you can access all the imported modules. Or just do ``import mod`` again.\n* Get the stack of all/other frames via ``sys._current_frames()``,\n and there you can access the globals from other threads as well.\n* You can provide ``user_ns`` to ``init_ipython_kernel``, e.g::\n\n init_ipython_kernel(user_ns=globals())\n\n or::\n \n init_ipython_kernel(user_ns={\"main_globals\": globals()})\n\n or::\n \n init_ipython_kernel(user_ns={\"a\": a})\n\n\nAlternatives / related links:\n\n* `pydbattach `_\n* `Twisted SSH `_\n (`example code `__)\n* ``IPython.embed_kernel`` in a background thread\n (`example code `__).\n This has some issues\n (e.g. `here `_;\n messing around with ``sys.stdout`` etc).\n* This code was introduced in\n `this StackOverflow question `_,\n and also discussed in this `IPython GitHub issue #8097 `_,\n but it has become outdated, so this project provides a rewrite / updated code,\n and the goal was also an easy to install pip package.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/albertz/background-zmq-ipython", "keywords": "", "license": "2-clause BSD license", "maintainer": "", "maintainer_email": "", "name": "background_zmq_ipython", "package_url": "https://pypi.org/project/background_zmq_ipython/", "platform": "", "project_url": "https://pypi.org/project/background_zmq_ipython/", "project_urls": { "Homepage": "https://github.com/albertz/background-zmq-ipython" }, "release_url": "https://pypi.org/project/background_zmq_ipython/1.20190928.182508/", "requires_dist": null, "requires_python": "", "summary": "Background ZMQ IPython/Jupyter kernel", "version": "1.20190928.182508" }, "last_serial": 5900012, "releases": { "1.20190201.151619": [ { "comment_text": "", "digests": { "md5": "c6c3e680bfee689021f1960ec04a37e6", "sha256": "c468691307d9a37f2ada8ba6699a82da8aaf6c7ed2690a968b58990e429b79ec" }, "downloads": -1, "filename": "background_zmq_ipython-1.20190201.151619.tar.gz", "has_sig": false, "md5_digest": "c6c3e680bfee689021f1960ec04a37e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4314, "upload_time": "2019-02-01T15:17:23", "url": "https://files.pythonhosted.org/packages/d2/54/9a92a6919dafeb3cfb58bc7f9fa51f5219f582d150d1b86ca2754940ae05/background_zmq_ipython-1.20190201.151619.tar.gz" } ], "1.20190201.151741": [ { "comment_text": "", "digests": { "md5": "eafe089285faa9c72d2a46c7d591b150", "sha256": "2a799058355087c39cef41b9007b40525609d75706c9e31a52d32faaededeb96" }, "downloads": -1, "filename": "background_zmq_ipython-1.20190201.151741.tar.gz", "has_sig": false, "md5_digest": "eafe089285faa9c72d2a46c7d591b150", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4317, "upload_time": "2019-02-01T15:17:42", "url": "https://files.pythonhosted.org/packages/84/03/a61552131ad119c0cd8360f666590bdb42e498f9327b5e0bdaeefd0b4369/background_zmq_ipython-1.20190201.151741.tar.gz" } ], "1.20190201.152205": [ { "comment_text": "", "digests": { "md5": "fb7cc532aac488fdbe59ffa711a3e6c8", "sha256": "8932bf15e1e0ae0e1bc3ca781e1b185550a9b14b9211e6ae931867c4acf27039" }, "downloads": -1, "filename": "background_zmq_ipython-1.20190201.152205.tar.gz", "has_sig": false, "md5_digest": "fb7cc532aac488fdbe59ffa711a3e6c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4456, "upload_time": "2019-02-01T15:22:05", "url": "https://files.pythonhosted.org/packages/71/c3/e35a10adbb16fba6fbe09efb5a22e5a1b01cb54ee1f77de139abe4069f41/background_zmq_ipython-1.20190201.152205.tar.gz" } ], "1.20190201.152349": [ { "comment_text": "", "digests": { "md5": "40b40d4848e6cb0d53d2c375d7a73506", "sha256": "fe47da8f34432803c99a07c6282717296556b7f1c5cfa602c0cfdfc22912cb76" }, "downloads": -1, "filename": "background_zmq_ipython-1.20190201.152349.tar.gz", "has_sig": false, "md5_digest": "40b40d4848e6cb0d53d2c375d7a73506", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4533, "upload_time": "2019-02-01T15:23:50", "url": "https://files.pythonhosted.org/packages/be/b7/9fc406a8a1cf37ec4c6ddd80b9c43af10c0f2f90b67833c15a890ecfb160/background_zmq_ipython-1.20190201.152349.tar.gz" } ], "1.20190201.152713": [ { "comment_text": "", "digests": { "md5": "e19c0408e0f6c425517c4f36db7de18f", "sha256": "e01f2cc77a27ca9b2006c96e59248e20ad7a7a9a98a0fb48a35a397f082e2a43" }, "downloads": -1, "filename": "background_zmq_ipython-1.20190201.152713.tar.gz", "has_sig": false, "md5_digest": "e19c0408e0f6c425517c4f36db7de18f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4530, "upload_time": "2019-02-01T15:27:13", "url": "https://files.pythonhosted.org/packages/c5/85/99c0a3e45d4c090bb42f5dca5ef94469fe99368a233085094bc847350d25/background_zmq_ipython-1.20190201.152713.tar.gz" } ], "1.20190201.154845": [ { "comment_text": "", "digests": { "md5": "e41015a9d90c9c80567a2215268ce46d", "sha256": "5e321fc40205685b8d2fe9e7303bf41aa58339d5d66f4bb5c17c43c7d442d180" }, "downloads": -1, "filename": "background_zmq_ipython-1.20190201.154845.tar.gz", "has_sig": false, "md5_digest": "e41015a9d90c9c80567a2215268ce46d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4596, "upload_time": "2019-02-01T15:48:46", "url": "https://files.pythonhosted.org/packages/8b/03/4b17a1cf09931a6625cbdc1a51db6e20326120c78db6a73241616a86696b/background_zmq_ipython-1.20190201.154845.tar.gz" } ], "1.20190201.155655": [ { "comment_text": "", "digests": { "md5": "1002e9a521a0a75989ee14c26d0d462f", "sha256": "a69cf7626ad0ec8bdb0bc8dd8a01238d881e00ca824708e15e70912df1db6d02" }, "downloads": -1, "filename": "background_zmq_ipython-1.20190201.155655.tar.gz", "has_sig": false, "md5_digest": "1002e9a521a0a75989ee14c26d0d462f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4794, "upload_time": "2019-02-01T15:56:55", "url": "https://files.pythonhosted.org/packages/b8/96/fb55c647d3f2c16c6471f3de5150559a70fc7c5201eebf3e5c4ed9b4c076/background_zmq_ipython-1.20190201.155655.tar.gz" } ], "1.20190202.165811": [ { "comment_text": "", "digests": { "md5": "165f958af72e8f9999e1f2aa11882583", "sha256": "169ef9f06fc85026c971980b604a65a8a2a14af2d58ef8c140ad5ca29c8236c9" }, "downloads": -1, "filename": "background_zmq_ipython-1.20190202.165811.tar.gz", "has_sig": false, "md5_digest": "165f958af72e8f9999e1f2aa11882583", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5817, "upload_time": "2019-02-02T15:58:35", "url": "https://files.pythonhosted.org/packages/27/6a/d5f9515dd9431e1fcded993030c6b10ec58c84e917e449dde492bb5fbad5/background_zmq_ipython-1.20190202.165811.tar.gz" } ], "1.20190203.141352": [ { "comment_text": "", "digests": { "md5": "48bcd55381419b317abf129e78212c1b", "sha256": "720fdcb7a67912fd3f9b98ffb5e6b046b354bf8d5025e3209dbcab9d1f72e3e9" }, "downloads": -1, "filename": "background_zmq_ipython-1.20190203.141352.tar.gz", "has_sig": false, "md5_digest": "48bcd55381419b317abf129e78212c1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5964, "upload_time": "2019-02-03T13:36:39", "url": "https://files.pythonhosted.org/packages/19/3c/112ac33ba38a2893965dd23f1dd5cbccaf36a74362ad0bc86df12480553a/background_zmq_ipython-1.20190203.141352.tar.gz" } ], "1.20190204.133220": [ { "comment_text": "", "digests": { "md5": "a0b320e3246a55a416c0bf9f1c1bb40e", "sha256": "8853c31d094cc0703f428922e2f440d1ac66cdc056c2185008cadea88b1fd54b" }, "downloads": -1, "filename": "background_zmq_ipython-1.20190204.133220.tar.gz", "has_sig": false, "md5_digest": "a0b320e3246a55a416c0bf9f1c1bb40e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5931, "upload_time": "2019-02-04T12:32:33", "url": "https://files.pythonhosted.org/packages/ff/ff/efcc94d9fd7cf28d097f81ad65fe83db28c1a8f5bf7838e28ce3f51f05ba/background_zmq_ipython-1.20190204.133220.tar.gz" } ], "1.20190928.164332": [ { "comment_text": "", "digests": { "md5": "06719c4b6d0a511340dc5897d56e4deb", "sha256": "875707ac52f70e0cd4ab36d4979de2c8688476a73d2502222c54e34583bfa084" }, "downloads": -1, "filename": "background_zmq_ipython-1.20190928.164332.tar.gz", "has_sig": false, "md5_digest": "06719c4b6d0a511340dc5897d56e4deb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7225, "upload_time": "2019-09-28T14:47:38", "url": "https://files.pythonhosted.org/packages/2e/69/5e6d87f62a736c5925a90c3ffae801b6768dab2176d4704a7f6c3fe1ff76/background_zmq_ipython-1.20190928.164332.tar.gz" } ], "1.20190928.182508": [ { "comment_text": "", "digests": { "md5": "9c7f0079d84c2a8b109f194a4a1cbe9f", "sha256": "b7668b53d479ab0d226e05671cfd6b41034de6b067b8646ae373b63855665c0a" }, "downloads": -1, "filename": "background_zmq_ipython-1.20190928.182508.tar.gz", "has_sig": false, "md5_digest": "9c7f0079d84c2a8b109f194a4a1cbe9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7437, "upload_time": "2019-09-28T16:25:26", "url": "https://files.pythonhosted.org/packages/b5/fa/e7185a3594f93710d4b476e8fe7390e3bf6fab19c93d655ba78ccb0fb30c/background_zmq_ipython-1.20190928.182508.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9c7f0079d84c2a8b109f194a4a1cbe9f", "sha256": "b7668b53d479ab0d226e05671cfd6b41034de6b067b8646ae373b63855665c0a" }, "downloads": -1, "filename": "background_zmq_ipython-1.20190928.182508.tar.gz", "has_sig": false, "md5_digest": "9c7f0079d84c2a8b109f194a4a1cbe9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7437, "upload_time": "2019-09-28T16:25:26", "url": "https://files.pythonhosted.org/packages/b5/fa/e7185a3594f93710d4b476e8fe7390e3bf6fab19c93d655ba78ccb0fb30c/background_zmq_ipython-1.20190928.182508.tar.gz" } ] }