3
0
Fork 0
forked from mirrors/nixpkgs

nixos/jupyter: Fix documentation example for jupyter.kernels (#56415)

* Fix documentation example for `jupyter.kernels`

The environment variable loading fails when using the example for `kernels` config, due to incorrect syntax. The error being something along the lines of `path not found`.

Thanks to @Infinisil and @layus for suggestions.
This commit is contained in:
Benjamin 2020-01-31 16:30:02 +02:00 committed by GitHub
parent f36cf56380
commit 5d2a7238df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,15 +118,15 @@ in {
in { in {
displayName = "Python 3 for machine learning"; displayName = "Python 3 for machine learning";
argv = [ argv = [
"$ {env.interpreter}" "''${env.interpreter}"
"-m" "-m"
"ipykernel_launcher" "ipykernel_launcher"
"-f" "-f"
"{connection_file}" "{connection_file}"
]; ];
language = "python"; language = "python";
logo32 = "$ {env.sitePackages}/ipykernel/resources/logo-32x32.png"; logo32 = "''${env.sitePackages}/ipykernel/resources/logo-32x32.png";
logo64 = "$ {env.sitePackages}/ipykernel/resources/logo-64x64.png"; logo64 = "''${env.sitePackages}/ipykernel/resources/logo-64x64.png";
}; };
} }
''; '';