idlmagic
Use IDL (interactive data language) inside IPython / Jupyter notebook cells. It uses the IDL-python bridge idlpy, which is bundled with your IDL installation.
Installation
Install idlmagic with pip:
pip install idlmagic
Then, enable idlmagic in your notbook:
%load_ext idlmagic
idlmagic relies on a valid installation of the IDL-python-bridge. To see if it is available, run
import idlpy
If the import fails, refer to the documentation to see how idlpy can be set up.
Usage
idlmagic provides you with %idl and %%idl to execute IDL commands, and %idl_var to pass an IDL variable to python.
In [1]: %load_ext idlmagic
# run IDL using the %idl line magic:
In [2]: %idl INDGEN(5)
0 1 2 3 4
# or use the cell magic for multiple commands:
In [3]: %%idl
...: PRINT, INDGEN(5)
...: PRINT, INDGEN(6)
0 1 2 3 4
0 1 2 3 4 5
# to access IDL data in python, you'll first have to assign it:
In [9]: %idl a = INDGEN(4)
# then use the %idl_var magic to get the IDL variable into python:
In [11]: a = %idl_var a
In [16]: a + 10
Out[16]: array([10, 11, 12, 13], dtype=int16)
Check the documentation for more examples.
Changes
v0.1.0
- first release
Metadata
Release files for idlmagic 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| idlmagic-0.1.0.tar.gz | 4.2 kB | Without provenance | Details for idlmagic-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| idlmagic-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for idlmagic-0.1.0-py2.py3-none-any.whl |
Total release size: 8.0 kB
Release files / idlmagic-0.1.0.tar.gz
| Download URL | idlmagic-0.1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f4470470db0c51c1fdcbc6ba0d09f0fa63f6f2b22943bbdd6fe38c3a98255b9
|
|
BLAKE2b-256 checksum How to use checksums |
025670ce0b59c3d485d17aec8dbf3e266c5f5fa52eef28959041be77ab53585e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / idlmagic-0.1.0-py2.py3-none-any.whl
| Download URL | idlmagic-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
95a6fbd9c40036cd4a1fc8842bd021d8fe0849d8f4db8b6a50046db7f3b65795
|
|
BLAKE2b-256 checksum How to use checksums |
61e75d0b87f47fa895d242aa94ea73701c8c70d25a37186606b692d1577491b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for idlmagic 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.