Hello Forth

Using the %%gforth cell magic, it's possible to do Forth Literate Programming with IPython.

You can do definitions:


In [1]:
%%gforth

: hello ( -- )  ." Hello, IPython notebook world with Forth." ;
    
: hellos ( n -- )  0 DO  cr I . hello  LOOP ;


 ok

Then run your definitions:


In [2]:
%%gforth

4 hellos


0 Hello, IPython notebook world with Forth.
1 Hello, IPython notebook world with Forth.
2 Hello, IPython notebook world with Forth.
3 Hello, IPython notebook world with Forth. ok

Looks interesting to me.