Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
labcode
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CST
labcode
Commits
42796918
Commit
42796918
authored
7 months ago
by
Alexandros Asonitis
Browse files
Options
Downloads
Patches
Plain Diff
Enclosed parameters in a tab
parent
736b318b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
hp4194/test_interface.ipynb
+14
-35
14 additions, 35 deletions
hp4194/test_interface.ipynb
with
14 additions
and
35 deletions
hp4194/test_interface.ipynb
+
14
−
35
View file @
42796918
...
@@ -23,31 +23,6 @@
...
@@ -23,31 +23,6 @@
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 3,
"execution_count": 3,
"id": "fe5d37b6-509f-4408-9805-1fee6af4a9f2",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "63fe9dced8874530abac65a94f995952",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"GridspecLayout(children=(Label(value='Probendaten', layout=Layout(grid_area='widget001', height='auto', width=…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"display(sample)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "ee6f1392-5976-430b-a26b-b594de19011c",
"id": "ee6f1392-5976-430b-a26b-b594de19011c",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
...
@@ -57,8 +32,8 @@
...
@@ -57,8 +32,8 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
5
,
"execution_count":
4
,
"id": "
4d4f47be-8c15-4b65-9bf8-8439aeaa840a
",
"id": "
77f6a2b9-5837-4144-93ce-1a68d74fe370
",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -67,19 +42,19 @@
...
@@ -67,19 +42,19 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
6
,
"execution_count":
5
,
"id": "
1627f28b-c64d-4a37-94eb-339917b5f140
",
"id": "
61d429a5-3be8-41e2-84af-7fd69862d936
",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"data": {
"data": {
"application/vnd.jupyter.widget-view+json": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
bf54c84eafc84f9ca9da42884ebd0f2
c",
"model_id": "
2f70ab8cc84b418ba27976417af31da
c",
"version_major": 2,
"version_major": 2,
"version_minor": 0
"version_minor": 0
},
},
"text/plain": [
"text/plain": [
"
H
Box(children=(GridspecLayout(children=(Label(value='
Sweep Parame
te
r
', layout=Layout(grid_area='widg
et001', he
…"
"
Tab(children=(V
Box(children=(GridspecLayout(children=(Label(value='
Probenda
te
n
', layout=Layout(grid_area='widg…"
]
]
},
},
"metadata": {},
"metadata": {},
...
@@ -87,19 +62,23 @@
...
@@ -87,19 +62,23 @@
}
}
],
],
"source": [
"source": [
"display(widgets.HBox([sweep_parameter,messparameter]))"
"tab = widgets.Tab()\n",
"children = [widgets.VBox([sample,widgets.HBox([sweep_parameter,messparameter])])]\n",
"tab.children = children\n",
"tab.set_title(0,'CV-measurement')\n",
"display(tab)"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
7
,
"execution_count":
6
,
"id": "81c3319b-4581-44c5-9849-89dd97714d22",
"id": "81c3319b-4581-44c5-9849-89dd97714d22",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"data": {
"data": {
"application/vnd.jupyter.widget-view+json": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
77e41ee2bf274a539ef385c20f5187e5
",
"model_id": "
174105988c5c4b568167af0f9ec57080
",
"version_major": 2,
"version_major": 2,
"version_minor": 0
"version_minor": 0
},
},
...
@@ -121,7 +100,7 @@
...
@@ -121,7 +100,7 @@
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": null,
"id": "
61d429a5-3be8-41e2-84af-7fd69862d936
",
"id": "
7f308fc0-43e6-4794-b6fd-15e47079c5cb
",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": []
"source": []
...
...
%% Cell type:code id:fe623b67-28af-4351-9e76-4381b0db3e0a tags:
%% Cell type:code id:fe623b67-28af-4351-9e76-4381b0db3e0a tags:
```
python
```
python
from
interface
import
*
from
interface
import
*
```
```
%% Cell type:code id:035405a8-a07b-4f45-b4db-fa4a56c94053 tags:
%% Cell type:code id:035405a8-a07b-4f45-b4db-fa4a56c94053 tags:
```
python
```
python
sample
,
sample_dict
=
probendaten
()
sample
,
sample_dict
=
probendaten
()
```
```
%% Cell type:code id:fe5d37b6-509f-4408-9805-1fee6af4a9f2 tags:
```
python
display
(
sample
)
```
%% Output
%% Cell type:code id:ee6f1392-5976-430b-a26b-b594de19011c tags:
%% Cell type:code id:ee6f1392-5976-430b-a26b-b594de19011c tags:
```
python
```
python
messparameter
,
messparameter_dict
=
messparameter
()
messparameter
,
messparameter_dict
=
messparameter
()
```
```
%% Cell type:code id:
4d4f47be-8c15-4b65-9bf8-8439aeaa840a
tags:
%% Cell type:code id:
77f6a2b9-5837-4144-93ce-1a68d74fe370
tags:
```
python
```
python
sweep_parameter
,
sweep_parameter_dict
=
sweep_parameter
()
sweep_parameter
,
sweep_parameter_dict
=
sweep_parameter
()
```
```
%% Cell type:code id:
1627f28b-c64d-4a37-94eb-339917b5f140
tags:
%% Cell type:code id:
61d429a5-3be8-41e2-84af-7fd69862d936
tags:
```
python
```
python
display
(
widgets
.
HBox
([
sweep_parameter
,
messparameter
]))
tab
=
widgets
.
Tab
()
children
=
[
widgets
.
VBox
([
sample
,
widgets
.
HBox
([
sweep_parameter
,
messparameter
])])]
tab
.
children
=
children
tab
.
set_title
(
0
,
'
CV-measurement
'
)
display
(
tab
)
```
```
%% Output
%% Output
%% Cell type:code id:81c3319b-4581-44c5-9849-89dd97714d22 tags:
%% Cell type:code id:81c3319b-4581-44c5-9849-89dd97714d22 tags:
```
python
```
python
measure
=
widgets
.
Button
(
description
=
'
Start Measurement
'
)
measure
=
widgets
.
Button
(
description
=
'
Start Measurement
'
)
calibrate
=
widgets
.
Button
(
description
=
'
Start Calibration
'
)
calibrate
=
widgets
.
Button
(
description
=
'
Start Calibration
'
)
display
(
widgets
.
HBox
([
measure
,
calibrate
]))
display
(
widgets
.
HBox
([
measure
,
calibrate
]))
```
```
%% Output
%% Output
%% Cell type:code id:
61d429a5-3be8-41e2-84af-7fd69862d936
tags:
%% Cell type:code id:
7f308fc0-43e6-4794-b6fd-15e47079c5cb
tags:
```
python
```
python
```
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment