Jupyter Notebooks and VSCode erroring in NixOS

Is it possible to run Jupyter Notebooks and VSCode in NixOS without vscode-fhs ?

I was trying to run Jupyter Notebooks and VSCode in NixOS, but i was getting a lot of errors.

I thought i could fix the first one by installing libstdc++ but it did not make a difference.

I had installed vscode-with-extensions and the related extensions for Python and Jupyter Notebooks and used the following nix-shell for the rest of the packages.

{ pkgs ? import <nixpkgs> {} }:
  
  with pkgs;

  mkShell {
    buildInputs = [
      # git
    ] ++ (with python311Packages; [
        python311
        pip
	ipython
	jupyter
        notebook
        ipykernel
        pandas
        numpy
        seaborn
        matplotlib
        scipy
    ]);
  }

Could anyone show me some guidance on how to fix this ?

For now, i am settling on vscode-fhs for Jupyter Notebooks.

Thanks in advance!
Ivo.

Edit: Better phrasing.

I have the same problem. In my case I want to use evcxr but jupyter in vscode doesn’t allow me to select the kernel.