Installing under VS Code¶
You will need three things for this extension
First, download and install VS Code. The suggested way to install this VS Code extension is
from the VS Code marketplace. Simply open the Extensions tab (or press
CTRL/CMD + SHIFT + X) after openinng VS Code and search
for Bionetgen. This package will show up, click install. If
this step doesn’t work, please make sure you have the latest version.
Next you will need Python installed and you need to have your terminal environment set correctly. We recommend
anaconda python since the rest of the workshop will make use of libraries that
come with this distribution. Download and install anaconda python. In VS Code,
open a new terminal (
CTRL/CMD + ` or under
Terminal -> New Terminal) and test if you have access to Python package manager pip.
If you don’t, you need to setup your environment so that the terminal has access to
pip, this is OS dependent and there are various
guides you can find online.
Finally once you have access to
pip install bionetgen. Once complete, make sure it’s installed correctly by
bionetgen -h. You can find more information on installation here.
Please note that this section is only if you can’t use the method above or are a developer working on the extension. There are two other ways to use the extension:
Cloning the repository and using the extension in debug mode. This is only really useful for development purposes, most users won’t need this.
To use the extension in debug mode:
Download and install VS Code from https://code.visualstudio.com
Open VS Code and open a new terminal
Terminal -> New Terminal, or
CTRL/CMD + `
In the terminal, run this line:
git clone https://github.com/RuleWorld/BNG_vscode_extension.gitto clone the repository in the desired directory
File -> Open to open the repository folder (BNG_vscode_extension)
To open up a new window running the extension
Run -> Start Debugging, or
Open an existing
.bnglfile or create a new file with