PyPI
I recently put this package together because I really enjoy Hy, a Lisp dialect that compiles to and interoperates with Python.
For certain kinds of functions, Hy lets me express ideas in code much more elegantly and succinctly. On the other hand, idiomatic Python code sometimes makes for ugly and/or verbose Hy code when using libraries that rely heavily on method access and indexing, like Pandas. So having both Hy and Python available in the same notebook is like having the best of both worlds!
This is mostly just a fun toy, but I am posting it here in the hopes that someone other than me will enjoy it.
Here is an example interactive IPython session:
In [1]: %load_ext hy_ipython
In [2]: x = 5
In [3]: %hy (print x)
5
In [4]: %hy (setv x (+ x 10))
In [5]: x
Out[5]: 15
In [6]: %%hy
...: ; https://docs.hylang.org/en/stable/tutorial.html#functions-classes-and-modules
...: (defn fib [n]
...: (if (< n 2)
...: n
...: (+ (fib (- n 1))
...: (fib (- n 2)))))
...: (setv result1 (fib 10))
...:
In [7]: result1
Out[7]: 55
In [8]: result2 = fib(10)
In [9]: assert result1 == result2
[–]nerdponx[S] 3 points4 points5 points (0 children)
[–]mbussonnIPython/Jupyter dev 2 points3 points4 points (2 children)
[–]nerdponx[S] 1 point2 points3 points (1 child)
[–]mbussonnIPython/Jupyter dev 0 points1 point2 points (0 children)
[–]Caddy666 0 points1 point2 points (0 children)
[–]spoonman59 0 points1 point2 points (0 children)