|
6 | 6 | <rect> |
7 | 7 | <x>0</x> |
8 | 8 | <y>0</y> |
9 | | - <width>504</width> |
10 | | - <height>423</height> |
| 9 | + <width>409</width> |
| 10 | + <height>384</height> |
11 | 11 | </rect> |
12 | 12 | </property> |
13 | 13 | <property name="windowTitle"> |
14 | 14 | <string>Form</string> |
15 | 15 | </property> |
16 | 16 | <layout class="QVBoxLayout" name="verticalLayout"> |
17 | 17 | <item> |
18 | | - <widget class="ctkCollapsibleButton" name="SetupCollapsibleButton"> |
| 18 | + <widget class="ctkCollapsibleButton" name="InternalServerCollapsibleButton"> |
19 | 19 | <property name="text"> |
20 | | - <string>Setup</string> |
| 20 | + <string>Jupyter server in Slicer Python environment</string> |
21 | 21 | </property> |
22 | 22 | <layout class="QFormLayout" name="formLayout"> |
| 23 | + <item row="0" column="0"> |
| 24 | + <widget class="QLabel" name="label_2"> |
| 25 | + <property name="text"> |
| 26 | + <string>Notebook directory:</string> |
| 27 | + </property> |
| 28 | + </widget> |
| 29 | + </item> |
| 30 | + <item row="0" column="1"> |
| 31 | + <widget class="ctkPathLineEdit" name="NotebookPathLineEdit"/> |
| 32 | + </item> |
| 33 | + <item row="3" column="0" colspan="2"> |
| 34 | + <widget class="QLabel" name="JupyterServerStatusLabel"> |
| 35 | + <property name="text"> |
| 36 | + <string/> |
| 37 | + </property> |
| 38 | + </widget> |
| 39 | + </item> |
23 | 40 | <item row="2" column="0" colspan="2"> |
24 | | - <widget class="QGroupBox" name="AutomaticKernelInstallationGroupBox"> |
25 | | - <property name="title"> |
26 | | - <string>Automatic Slicer kernel installation: </string> |
| 41 | + <widget class="QPushButton" name="StopJupyterNotebookPushButton"> |
| 42 | + <property name="text"> |
| 43 | + <string>Stop Jupyter server</string> |
27 | 44 | </property> |
28 | | - <layout class="QFormLayout" name="formLayout_2"> |
29 | | - <item row="1" column="0"> |
30 | | - <widget class="QLabel" name="PythonScriptsFolderLabel"> |
31 | | - <property name="toolTip"> |
32 | | - <string>Folder that contains 'jupyter-kernelspec' executable</string> |
33 | | - </property> |
34 | | - <property name="text"> |
35 | | - <string>Python Scripts folder:</string> |
36 | | - </property> |
37 | | - </widget> |
38 | | - </item> |
39 | | - <item row="1" column="1"> |
40 | | - <widget class="ctkPathLineEdit" name="PythonScriptsFolderEdit"> |
41 | | - <property name="toolTip"> |
42 | | - <string>Folder that contains 'jupyter-kernelspec' executable</string> |
43 | | - </property> |
44 | | - </widget> |
45 | | - </item> |
46 | | - <item row="2" column="0" colspan="2"> |
47 | | - <widget class="QPushButton" name="InstallSlicerKernelPushButton"> |
48 | | - <property name="text"> |
49 | | - <string>Install Slicer kernel in Jupyter</string> |
50 | | - </property> |
51 | | - </widget> |
52 | | - </item> |
53 | | - <item row="3" column="0" colspan="2"> |
54 | | - <widget class="QLabel" name="InstallSlicerKernelStatusLabel"> |
55 | | - <property name="text"> |
56 | | - <string/> |
57 | | - </property> |
58 | | - </widget> |
59 | | - </item> |
60 | | - </layout> |
61 | 45 | </widget> |
62 | 46 | </item> |
63 | | - <item row="6" column="0" colspan="2"> |
64 | | - <widget class="QGroupBox" name="groupBox"> |
65 | | - <property name="title"> |
66 | | - <string>Slicer kernel installation</string> |
| 47 | + <item row="1" column="0" colspan="2"> |
| 48 | + <widget class="QPushButton" name="StartJupyterNotebookPushButton"> |
| 49 | + <property name="text"> |
| 50 | + <string>Start Jupyter server</string> |
67 | 51 | </property> |
68 | | - <layout class="QVBoxLayout" name="verticalLayout_2"> |
69 | | - <item> |
70 | | - <widget class="QLabel" name="KernelFolderLabel_2"> |
71 | | - <property name="text"> |
72 | | - <string>Run this command in a terminal in your Python environment:</string> |
73 | | - </property> |
74 | | - </widget> |
75 | | - </item> |
76 | | - <item> |
77 | | - <widget class="QTextEdit" name="ManualInstallCommandTextEdit"> |
78 | | - <property name="maximumSize"> |
79 | | - <size> |
80 | | - <width>16777215</width> |
81 | | - <height>50</height> |
82 | | - </size> |
83 | | - </property> |
84 | | - <property name="readOnly"> |
85 | | - <bool>true</bool> |
86 | | - </property> |
87 | | - </widget> |
88 | | - </item> |
89 | | - <item> |
90 | | - <widget class="QPushButton" name="CopyCommandToClipboardPushButton"> |
91 | | - <property name="text"> |
92 | | - <string>Copy command to clipboard</string> |
93 | | - </property> |
94 | | - </widget> |
95 | | - </item> |
96 | | - </layout> |
97 | 52 | </widget> |
98 | 53 | </item> |
99 | 54 | </layout> |
100 | 55 | </widget> |
101 | 56 | </item> |
102 | 57 | <item> |
103 | | - <widget class="ctkCollapsibleButton" name="ControlCollapsibleButton"> |
| 58 | + <spacer name="verticalSpacer_2"> |
| 59 | + <property name="orientation"> |
| 60 | + <enum>Qt::Vertical</enum> |
| 61 | + </property> |
| 62 | + <property name="sizeType"> |
| 63 | + <enum>QSizePolicy::Fixed</enum> |
| 64 | + </property> |
| 65 | + <property name="sizeHint" stdset="0"> |
| 66 | + <size> |
| 67 | + <width>20</width> |
| 68 | + <height>5</height> |
| 69 | + </size> |
| 70 | + </property> |
| 71 | + </spacer> |
| 72 | + </item> |
| 73 | + <item> |
| 74 | + <widget class="ctkCollapsibleButton" name="ExternalServerCollapsibleButton"> |
| 75 | + <property name="sizePolicy"> |
| 76 | + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> |
| 77 | + <horstretch>0</horstretch> |
| 78 | + <verstretch>0</verstretch> |
| 79 | + </sizepolicy> |
| 80 | + </property> |
104 | 81 | <property name="text"> |
105 | | - <string>Control</string> |
| 82 | + <string>Jupyter server in external Python environment</string> |
| 83 | + </property> |
| 84 | + <property name="collapsed"> |
| 85 | + <bool>true</bool> |
106 | 86 | </property> |
107 | 87 | <layout class="QVBoxLayout" name="verticalLayout_3"> |
108 | 88 | <item> |
109 | | - <widget class="QPushButton" name="StartJupyterNotebookPushButton"> |
| 89 | + <widget class="QLabel" name="label"> |
| 90 | + <property name="text"> |
| 91 | + <string>To install Slicer Kernel, execute this command in a terminal in the external Python environment:</string> |
| 92 | + </property> |
| 93 | + </widget> |
| 94 | + </item> |
| 95 | + <item> |
| 96 | + <widget class="QTextEdit" name="ManualInstallCommandTextEdit"> |
| 97 | + <property name="maximumSize"> |
| 98 | + <size> |
| 99 | + <width>16777215</width> |
| 100 | + <height>50</height> |
| 101 | + </size> |
| 102 | + </property> |
| 103 | + <property name="readOnly"> |
| 104 | + <bool>true</bool> |
| 105 | + </property> |
| 106 | + </widget> |
| 107 | + </item> |
| 108 | + <item> |
| 109 | + <widget class="QPushButton" name="CopyCommandToClipboardPushButton"> |
110 | 110 | <property name="text"> |
111 | | - <string>Start Jupyter notebook</string> |
| 111 | + <string>Copy command to clipboard</string> |
112 | 112 | </property> |
113 | 113 | </widget> |
114 | 114 | </item> |
|
0 commit comments