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
docker run -p 8888:8888 ngslang/ngs-jupyter
Then access the http://127.0.0.1:8888/?token=XXXXX that appears in the output
Build:
make docker-build
Run:
make docker-run
Then access the http://127.0.0.1:8888/?token=XXXXX that appears in the output
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
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