nlcc
May 8, 2022 ยท View on GitHub
Install
pip install nlcc
You must have either an OpenAI Codex key or HuggingFace API key (minimum plan level is Community Pro). Make sure they are set via
export OPENAI_API_KEY=<your key here> or export HUGGINGFACE_API_KEY=<your key here>
then nlcc
citation
Please cite our preprint
@article{hocky2022natural,
title={Natural language processing models that automate programming will transform chemistry research and teaching},
author={Hocky, Glen M and White, Andrew D},
journal={Digital Discovery},
year={2022},
publisher={Royal Society of Chemistry}
}
key bindings
ctrl-wcopy to clipboard (Note, you may need to install xsel on linux)ctrl-qhelpctrl-oreset contextctrl-zexecute python codectrl-tadjust temperaturectrl-ustatusctrl-cquitctrl-xwrite to file (same output as copy to clipboard)ctrl-lload from filectrl-nupdate number of code responsesctrl-downEnter multiline.escape-enterto enter prompt orctrl-downto leave[insert]Add this to your multiline prompt to have completion inserted in a specific location