mirror of
https://github.com/dwinkler1/np.git
synced 2026-02-19 22:40:57 -05:00
exporting ipython and better message
This commit is contained in:
parent
d993212660
commit
a0d9b64a38
1 changed files with 23 additions and 1 deletions
|
|
@ -375,6 +375,7 @@
|
|||
set -euo pipefail
|
||||
echo "🔄 Syncing existing project..."
|
||||
uv sync
|
||||
echo "🐍 Launching Marimo..."
|
||||
'';
|
||||
in {
|
||||
enable = config.enabledLanguages.python;
|
||||
|
|
@ -388,6 +389,25 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
py = let
|
||||
ipythonInit = ''
|
||||
set -euo pipefail
|
||||
echo "🔄 Syncing existing project..."
|
||||
uv sync
|
||||
echo "🐍 Launching IPython..."
|
||||
'';
|
||||
in {
|
||||
enable = config.enabledLanguages.python;
|
||||
path = {
|
||||
value = "${pkgs.uv}/bin/uv";
|
||||
args = [
|
||||
"--run"
|
||||
"${ipythonInit}"
|
||||
"--add-flags"
|
||||
"run ipython \"$@\""
|
||||
];
|
||||
};
|
||||
};
|
||||
jl = {
|
||||
enable = config.enabledLanguages.julia;
|
||||
path = {
|
||||
|
|
@ -447,7 +467,9 @@
|
|||
(pkgs.lib.optionalString config.enabledLanguages.r " - ${config.defaultPackageName}-r: Launch R console")
|
||||
(pkgs.lib.optionalString config.enabledLanguages.julia " - ${config.defaultPackageName}-jl: Launch Julia REPL")
|
||||
(pkgs.lib.optionalString config.enabledLanguages.python " - ${config.defaultPackageName}-m: Launch Marimo notebook")
|
||||
"See options in flake.nix"
|
||||
(pkgs.lib.optionalString config.enabledLanguages.python " - ${config.defaultPackageName}-py: Launch IPython REPL")
|
||||
" "
|
||||
"To adjust options run: ${config.defaultPackageName} flake.nix"
|
||||
]);
|
||||
in
|
||||
pkgs.mkShell {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue