ipython-iris-magic
%%iris magic for IPython, can run ObjectScript command in Notebooks.
It can be run in any Notebook and does not require any special setup on IRIS or the Notebook.
Demo
As you can see, the first line load the magic, the second line connect to the server, the third line run the ObjectScript command.
All of this demo is in the example/Notebooks/Demo-Iris-Magic.ipynb
To run the demo run the following command in the root of the project:
docker-compose up
Then go to this url: http://127.0.0.1:8888/notebooks/Demo-Iris-Magic.ipynb
Load the magic
%load_ext iris_magic
Connect to the server
%%iris iris://superuser:SYS@localhost:1972/USER
Run the ObjectScript command
%%iris
Set x = 1
Write x
Installation
In order to use this magic, you need to install the ipython-iris-magic package.
pip install ipython-iris-magic
All the dependencies will be installed automatically.
Usage
%load_ext iris_magic
%%iris iris://superuser:SYS@localhost:1972/USER
set test = "toto"
zw test
Output:
test="toto"
You can also use the magic to run SQL query.
Load the magic
%load_ext sql
/!\ You need to install the sql extension first.
The sql extension is not part of the standard IPython installation. You can install it with the following command:
pip install ipython-sql
Connect to the server
%sql iris://superuser:SYS@localhost:1972/USER
Run the SQL query
%sql SELECT 1
Metadata
Release files for ipython-iris-magic 0.0.8
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 | |
|---|---|---|---|---|
| ipython-iris-magic-0.0.8.tar.gz | 4.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ipython_iris_magic-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.8 kB
Release files / ipython-iris-magic-0.0.8.tar.gz
| Download URL | ipython-iris-magic-0.0.8.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
990ccb71681bf224ee86d0ea67192dd59f44536ae7b00dce74c06dd86c53e3fd
|
|
BLAKE2b-256 checksum How to use checksums |
5a5d7542a538752714d0bb81ec7b76386c8a4ac23c6e515492cca665f1480537
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / ipython_iris_magic-0.0.8-py3-none-any.whl
| Download URL | ipython_iris_magic-0.0.8-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
11c0fe0da6173c3ca881965a6b24e6b84377f46cd1646fba7d8c8867d13834f0
|
|
BLAKE2b-256 checksum How to use checksums |
2f92cc24e34bf4ae869acbc7b3c163c2556cc7a343792ce37c927a55094fd8c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for ipython-iris-magic 0.0.8
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.