1. Build the Environment
Build a computational environment that includes the software you need to do your work. This means installing any necessary software using code cells as below. For complete documentation on this process, see How to Install System Packages.
1.1. Installing System Packages
Install system packages with
apt-get or language packages like
pip for Python from the command line. These will be available in the transcluded environment.
apt-get update apt-get install -y nodejs npm npm install -g coinmon
coinmon -t 5
1.2. Installing Language Specific Packages
Alternatively, you can use language specific commands such as
install.packages() in R to install the software of your choice. These will be available in the transcluded environment.
apt-get update apt-get install librsvg2-dev
2. Export the Environment
Once dependencies are installed, export the environment by checking the box in the runtime settings menu as seen below:
3. Publish the Article
Publish the Article containing the environment by clicking the publish article button on the toolbar, choosing a name for the environment, and clicking the Publish now button.
4. Transclude the Environment in a New Article
To use your environment:
- Create a new article
- Click the runtime settings icon
- Click the pulldown menu next to Environment
- Scroll down and click Transclude Environment
- Type the name of the published environment and click on it when it appears
- You will now be able to use the previously created computational environment in your new article