{ "info": { "author": "r4lv", "author_email": "r4lv@peaxels.com", "bugtrack_url": null, "classifiers": [ "Framework :: IPython", "Framework :: Jupyter", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Other", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Astronomy", "Topic :: Scientific/Engineering :: Physics", "Topic :: Software Development :: Libraries" ], "description": "\n# idlmagic\n\nUse IDL ([interactive data language](https://www.harrisgeospatial.com/SoftwareTechnology/IDL.aspx)) inside IPython / Jupyter notebook cells. It uses the IDL-python bridge `idlpy`, which is bundled with your IDL installation.\n\n\n## Installation\n\n\nInstall *idlmagic* with pip:\n\n``` bash\npip install idlmagic\n```\n\nThen, enable *idlmagic* in your notbook:\n``` python\n%load_ext idlmagic\n```\n\n*idlmagic* relies on a valid installation of the IDL-python-bridge. To see if it is available, run\n``` python\nimport idlpy\n```\nIf the import fails, refer to the [documentation](https://r4lv.github.io/ipython-idlmagic) to see how `idlpy` can be set up.\n\n\n## Usage\n\n*idlmagic* provides you with `%idl` and `%%idl` to execute IDL commands, and `%idl_var` to pass an IDL variable to python.\n\n``` python\nIn [1]: %load_ext idlmagic\n\n# run IDL using the %idl line magic:\nIn [2]: %idl INDGEN(5)\n 0 1 2 3 4\n\n# or use the cell magic for multiple commands:\nIn [3]: %%idl\n ...: PRINT, INDGEN(5)\n ...: PRINT, INDGEN(6)\n 0 1 2 3 4\n 0 1 2 3 4 5\n\n# to access IDL data in python, you'll first have to assign it:\nIn [9]: %idl a = INDGEN(4)\n\n# then use the %idl_var magic to get the IDL variable into python:\nIn [11]: a = %idl_var a\n\nIn [16]: a + 10\nOut[16]: array([10, 11, 12, 13], dtype=int16)\n```\n\nCheck the [documentation](https://r4lv.github.io/ipython-idlmagic) for more examples.\n\n\n## Changes\n\n**v0.1.0**\n\n- first release\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/r4lv/ipython-idl-magic", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "idlmagic", "package_url": "https://pypi.org/project/idlmagic/", "platform": "", "project_url": "https://pypi.org/project/idlmagic/", "project_urls": { "Homepage": "https://github.com/r4lv/ipython-idl-magic" }, "release_url": "https://pypi.org/project/idlmagic/0.1.0/", "requires_dist": [ "IPython" ], "requires_python": ">=3.0.0", "summary": "%%idl magic for IPython and Jupyter notebooks, providing access to Harris Geospatial's IDL programming language.", "version": "0.1.0" }, "last_serial": 3999601, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "92d4887da6898659c4286c938ea19a0b", "sha256": "95a6fbd9c40036cd4a1fc8842bd021d8fe0849d8f4db8b6a50046db7f3b65795" }, "downloads": -1, "filename": "idlmagic-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "92d4887da6898659c4286c938ea19a0b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.0.0", "size": 3787, "upload_time": "2018-06-25T09:28:17", "url": "https://files.pythonhosted.org/packages/61/e7/5d0b87f47fa895d242aa94ea73701c8c70d25a37186606b692d1577491b3/idlmagic-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "544e4c4d22066df913d64d5fd26c1db1", "sha256": "2f4470470db0c51c1fdcbc6ba0d09f0fa63f6f2b22943bbdd6fe38c3a98255b9" }, "downloads": -1, "filename": "idlmagic-0.1.0.tar.gz", "has_sig": false, "md5_digest": "544e4c4d22066df913d64d5fd26c1db1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0.0", "size": 4242, "upload_time": "2018-06-25T09:28:18", "url": "https://files.pythonhosted.org/packages/02/56/70ce0b59c3d485d17aec8dbf3e266c5f5fa52eef28959041be77ab53585e/idlmagic-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "92d4887da6898659c4286c938ea19a0b", "sha256": "95a6fbd9c40036cd4a1fc8842bd021d8fe0849d8f4db8b6a50046db7f3b65795" }, "downloads": -1, "filename": "idlmagic-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "92d4887da6898659c4286c938ea19a0b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.0.0", "size": 3787, "upload_time": "2018-06-25T09:28:17", "url": "https://files.pythonhosted.org/packages/61/e7/5d0b87f47fa895d242aa94ea73701c8c70d25a37186606b692d1577491b3/idlmagic-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "544e4c4d22066df913d64d5fd26c1db1", "sha256": "2f4470470db0c51c1fdcbc6ba0d09f0fa63f6f2b22943bbdd6fe38c3a98255b9" }, "downloads": -1, "filename": "idlmagic-0.1.0.tar.gz", "has_sig": false, "md5_digest": "544e4c4d22066df913d64d5fd26c1db1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0.0", "size": 4242, "upload_time": "2018-06-25T09:28:18", "url": "https://files.pythonhosted.org/packages/02/56/70ce0b59c3d485d17aec8dbf3e266c5f5fa52eef28959041be77ab53585e/idlmagic-0.1.0.tar.gz" } ] }