Skip to content

How to use PR in shell.nix ? #124

Description

@573

Thought pytorch-bin giving a try.

With shell.nix defined as:

let
  jupyter = import (builtins.fetchGit {
    url = https://github.com/tweag/jupyterWith;
    rev = "";
  }) {};

  iPython = jupyter.kernels.iPythonWith {
    name = "python";
    packages = p: with p; [
            # https://discourse.nixos.org/t/improving-nixos-data-science-infrastructure-ci-for-mkl-cuda/5074/43
            # curl -sL https://github.com/NixOS/nixpkgs/pull/96669.patch | head -n 1 | grep -o -E -e "[0-9a-f]{40}"
            (import (fetchTarball
                    "https://github.com/NixOS/nixpkgs/archive/6cce9c30786442f1fb2b6bd7c2c7c9a089e8648b.tar.gz")
                    {}).python3Packages.pytorch-bin
                  ];
  };

  jupyterEnvironment =
    jupyter.jupyterlabWith {
      kernels = [ iPython ];
    };
in
  jupyterEnvironment.env

I still can't import torch though neither in python nor jupyter lab.
Can't spot the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions