Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephTLucas committed Jan 17, 2024
1 parent eca7365 commit 17be135
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "vger"
version = "0.0.1"
version = "0.0.3"
description = "An execution framework for Jupyter environments."
authors = ["Joseph Lucas <joe@joetl.com>"]
license = "GPL-3.0-only"
Expand Down
6 changes: 5 additions & 1 deletion vger/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def login(self):
inquirer.Text("secret", message="What is the secret token or password?")]
answers = inquirer.prompt(login_questions)
self.server = answers["server"]
if self.server[-1] != "/":
self.server += "/"
self.secret = answers["secret"]
try:
self.connection = Connection(self.server, self.secret)
Expand All @@ -27,7 +29,9 @@ def login(self):
def pick_target(self):
session_info = dict()
for s in self.sessions:
session_info[f"{self.connection.jpy_sessions[s]['path']} Last Active: {self.connection.jpy_sessions[s]['kernel']['last_activity']}"] = s
name = self.connection.jpy_sessions[s]['name']
last_active = f"Last Active: {self.connection.jpy_sessions[s]['kernel']['last_activity']}"
session_info[f"{name:<20} {last_active:<30}"] = s
select_kernel = [inquirer.List("kernel", message="Which notebook would you like to attach to?", choices=session_info.keys())]
answer = inquirer.prompt(select_kernel)
self.target = session_info[answer["kernel"]]
Expand Down

0 comments on commit 17be135

Please sign in to comment.