semvec/pypi-packages huggingface dataset:
ipython-futhark 1.1.3
Futhark language embedding into IPython
License: MIT
Keywords: futhark ipython gpu

ipython-futhark
===============

Embed `Futhark <http://futhark-lang.org>`__ 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 <https://futhark.readthedocs.io/en/latest/installation.html>`__.

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 <http://nbviewer.jupyter.org/github/titouanc/ipython-futhark/blob/master/Demo.ipynb>`__

.. code:: ipython

    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.
python-scripting 0.1.0
Boilerplate for Python scripting
License: MIT
Requires Python: ~=3.6

Scripting is a boilerplate library for one-off Python scripts when you don't have an IDE or the like to work with. It
was primarily designed for Windows where scripts can be run via double-click, but it (probably) works just as well in
a variety of situations.


Here's an example what a script might look like pre-Scripting:

.. code-block:: python

    import traceback


    def do_something():
        ...
        return 200

    if __name__ == '__main__':  # Run as script
        try:  # Exceptions will close the terminal window
            print(do_something())
        except Exception:
            traceback.print_exc()  # Debug
        finally:
            input()  # Keep the window open

If all you're writing is a simple script and don't want to deal with extensive error handling, chances are you'll end
up with something like the above. If you write such scripts often, however, the amount of boilerplate adds up and
quickly becomes tedious to maintain.

Post-Scripting:

.. code-block:: python

    import scripting


    @scripting.main
    def do_something():
        ...
        return 200

Scripting takes care of exception handling, output formatting, and maintaining the terminal window for you so that you
can focus on getting your script done in the shortest amount of time possible.


Installation
------------

.. code-block:: bash

    $ pip install python-scripting
QiPy 1.0.5
A Python library to work with elements, ideals, ideal classes and class groups from quadratic integer rings.
License: MIT
Keywords: quadratic integers ideal class group

QiPy
====================

QiPy is a Python library to work with `quadratic integers`_. Well-known examples
are `Gaussian integers`_ and `Eisenstein integers`_. Besides,
QiPy implements ideals, `ideal classes`_ and `class groups`_ of
quadratic integer rings.

This library has been exhaustively tested with unit tests and `property testing`_.

A complete documentation of QiPy, including examples of all its funcionalities,
can be found in the `GitHub Page`_ of the repository.

Installation
~~~~~~~~~~~~

QiPy is written in Python 3 and uses the Python library SymPy_. Therefore,
Python 3 and SymPy must be installed in your computer.

The easiest way to install QiPy is with pip_ : ::

    pip3 install qipy


.. _quadratic integers: https://en.wikipedia.org/wiki/Quadratic_integer
.. _Gaussian integers: https://en.wikipedia.org/wiki/Gaussian_integer
.. _Eisenstein integers: https://en.wikipedia.org/wiki/Eisenstein_integer
.. _class number: http://mathworld.wolfram.com/ClassNumber.html
.. _class groups: https://en.wikipedia.org/wiki/Ideal_class_group
.. _A048981: https://oeis.org/A048981
.. _A061574: https://oeis.org/A061574
.. _Sympy: http://docs.sympy.org/latest/install.html
.. _property testing: http://hypothesis.works/
.. _pip: https://pip.pypa.io
.. _ideal classes: https://en.wikipedia.org/wiki/Ideal_class_group
.. _GitHub Page: https://ranea.github.io/QiPy/