Skip to main content

ipython-futhark

Embed Futhark code into your favourite IPython shells and Notebooks.

Install

You should have a working version of Futhark in your $PATH. To do so, read the installation instructions on readthedocs.io.

Then install ipython-futhark using pip:

  • ipython futhark only: $ pip install ipython-futhark

  • Installing pyopencl along the way: $ pip install ipython-futhark[opencl]

Example

See the Notebook demo

IPython 5.4.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: %load_ext futhark

In [2]: %%futhark gpu
   ...: let main(): i32 = 42
   ...:
Warning: Device limits tile size to 22 (setting was 32)

In [3]: main()
Out[3]: 42

In [4]: %%futhark inspect gpu
   ...: let main(): f32 = 42
   ...:
In: main(): f32 = 42
Declaration of function main at tmpDWm0Zs.fut:1:5-1:5 declares return type f32, but body has type i32
If you find this error message confusing, uninformative, or wrong, please open an issue at https://github.com/HIPERFIT/futhark/issues.

Release files for ipython-futhark 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipython-futhark 1.1.3
File Size Uploaded
ipython-futhark-1.1.3.tar.gz 3.8 kB Details

Release files / ipython-futhark-1.1.3.tar.gz

Download URL ipython-futhark-1.1.3.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4a0401dc71cc3f923048f143bf6160adb31c891ff1ee4d49c7a108fa2b7dcd20
BLAKE2b-256 checksum
How to use checksums
e1e21b36a2f65723f3aeed47174e86d64ab413bf2bd10c6b15967bd43181b728
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.3 This release

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page