Tutorial 2 - how to get started with a basic notebook and script collection#
Clone the
nbscuid-examplesrepo:git clone https://github.com/rmshkv/nbscuid-examples.git
We’ll be using the
testing-simplifying-featurescollection.cdinto the directorynbscuid-examples/testing-simplifying-features, then install the environment specified byenvironment.yml:mamba env create -f environment.yml
This will create an environment called
nbscuid-tutorial2, which hasnbscuidinstalled, as well as the packages necessary to run the tutorial notebooks.Activate the environment you just installed:
conda activate nbscuid-tutorial2
Run
nbscuid-run config.yml
This will run a few simple notebooks showcasing some of
nbscuid’s capabilities. The executed notebooks get copied to a directory calledcomputed_notebooks/placeholder-titlecreated in therun_dirspecified in yourconfig.yml(by default the same directory thatconfig.ymlis in). The script specified inconfig.ymlcreates a small txt file in the main directory.Next, run
nbscuid-build config.yml
This will build the Jupyter Book based on the table of contents specified in the
config.ymlfile, under Jupyter Book Table of Contents. The html files that make up the Jupyter Book will be created undercomputed_notebooks/placeholder-title/_build/html.