You can use Hylang with this magic:
In [1]: %%script hy
(print "Hello, Cuddlefish!")
...:
=> Hello, Cuddlefish!
=> hy 0.9.12
In [2]:
I want to use it directly:
In [1]: (print "Hello, Cuddlefish!")
Hello, Cuddlefish!
Int [2]:
By default, this was Python. The IPython console is now deprecated and if you want to start it, you'll need to use the Jupyter Console, which is a terminal-based console frontend for Jupyter kernels.
Install IPython The easiest way is to run easy_install ipython[all] as an administrator (start button, type cmd , shift+right click on “cmd.exe” and select “Run as administrator”). This installs the latest stable version of IPython including the main required and optional dependencies.
The IPython Notebook is now known as the Jupyter Notebook. It is an interactive computational environment, in which you can combine code execution, rich text, mathematics, plots and rich media. For more details on the Jupyter Notebook, please see the Jupyter website.
IPython offers an enhanced read-eval-print loop (REPL) environment particularly well adapted to scientific computing. In other words, IPython is a powerful interface to the Python language. But it is certainly not the only one. Besides IPython, the most common way to use Python is to write scripts, files with the .
Try out my hymagic module. You can install it using
$ pip install hymagic
Load the magic using
%load_ext hymagic
Use %hylang
for one line and %%hylang
for a whole cell. For example
%hylang (+ 1 2 3)
and
%%hylang
(defn hello []
(print "hello world"))
(hello)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With