Skip to content

Commit

Permalink
Remember notebook type.
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed Jun 14, 2023
1 parent f4d8c2d commit 7ceb087
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import time
import plistlib
import tkinter
#### from configparser import ConfigParser
from tkinter import ttk
from tkinter.font import Font
from tkinter.simpledialog import Dialog, askstring
Expand Down Expand Up @@ -203,9 +202,13 @@ def __init__(self, root):
self.terminals.append('iTerm.app')
self.terminal_var = tkinter.Variable(self, self.terminals[0])
self.terminal_option = PopupMenu(checks, self.terminal_var, self.terminals)
self.notebook_types = ['Classic Jupyter', 'Jupyter Lab']
self.use_jupyter = ttk.Radiobutton(checks, text="Notebook",
variable=radio_var, value='nb', command=self.update_radio_buttons)
self.notebook_types = ['Classic Jupyter']
if self.settings['state']['notebook_type'] == 'Jupyter Lab':
self.notebook_types.insert(0, 'Jupyter Lab')
else:
self.notebook_types.append('Jupyter Lab')
self.nb_var = tkinter.Variable(self, self.notebook_types[0])
self.notebook_option = PopupMenu(checks, self.nb_var, self.notebook_types)
notebook_dir_frame = ttk.Frame(checks)
Expand Down

0 comments on commit 7ceb087

Please sign in to comment.