iPython extension for ngs language
copy: cp -v ngs.py $(ipython locate)/extensions/ngs.py
or link: ln -s $(pwd)/ngs.py $(ipython locate)/extensions/ngs.py
Requirements
- For linux,
git
,curl
andapt
need to be installed - For Mac:
git
,curl
andbrew
need to be installed
Add the following lines to the notebook and run:
!curl https://raw.githubusercontent.com/ngs-lang/ngs-ipython-extension/master/ngs-install.sh | bash
%load_ext ngs
This extension can be used both with Jupyter Notebooks or iPython
%load_ext ngs
%reload_ext ngs
%ngs [single line expression]
%%ngs [multi line code]
Python defined variables will be sent to ngs context and can be used inside the scripts
On the return from ngs, the Python context will be updated with the newer values