Skip to content

Commit

Permalink
fix: dev: #154 Invoke: fixed nb task for Windows systems
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrodantuono committed Apr 21, 2023
1 parent ecb014c commit 50ba7e2
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions tasks/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,18 @@ def start(c_r):
c_r.run(_command)
print(f">>> {colorize(_command, color=Color.OKBLUE)}\n")
elif SYSTEM == OperatingSystem.WINDOWS:
_command = (
"wt -d ./jupyter-notebooks jupyter notebook "
f"--port={c_r.start_port} --no-browser"
)
print(
colorize(
"Notebook server is not attached to this terminal process."
" Close windows terminal instance instead.",
color=Color.WARNING,
with c_r.cd("./jupyter-notebooks"):
_command = (
"wt -d . jupyter notebook "
f"--port={c_r.start_port}"
)
print(
colorize(
"Notebook server is not attached to this terminal process."
" Close windows terminal instance instead.",
color=Color.WARNING,
)
)
)

print(f"{tmp_str}")
c_r.run(_command)
Expand Down

0 comments on commit 50ba7e2

Please sign in to comment.