Skip to content

Commit

Permalink
Merge branch 'notebooks' into maria/fix-envrc
Browse files Browse the repository at this point in the history
  • Loading branch information
idontgetoutmuch authored Oct 7, 2022
2 parents fe0578e + d741800 commit f54d1d1
Show file tree
Hide file tree
Showing 15 changed files with 1,759 additions and 217 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v13
uses: DeterminateSystems/update-flake-lock@v14
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ for probabilistic programs][thesis-doi]. Thesis. University of Cambridge.

Now you can use `stack build`, `stack test` and `stack ghci`.

**To view the notebooks, go to the website**. To use the notebooks interactively, you will first need `nix`. Then:
**To view the notebooks, go to the website**. To use the notebooks interactively:

1. Run `nix develop --system x86_64-darwin --extra-experimental-features nix-command --extra-experimental-features flakes`

2. This should open a shell, from which you can run `jupyter-lab` to load the notebooks
1. Compile the source: `stack build`
2. If you do not have `nix` [install it](https://nixos.org/download.html).
3. Run `nix develop --system x86_64-darwin --extra-experimental-features nix-command --extra-experimental-features flakes` - this should open a nix shell. For Linux use `x86_64-linux` for `--system` option instead.
4. Run `jupyter-lab` from the nix shell to load the notebooks.

Your mileage may vary.

Expand Down
Loading

0 comments on commit f54d1d1

Please sign in to comment.