Skip to content

Commit

Permalink
Revamp WorkflowWidget layout. Not fully functional, but fixes #32.
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverEvans96 committed Aug 15, 2017
1 parent 7154f52 commit 7bce6c7
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 53 deletions.
62 changes: 37 additions & 25 deletions workflow_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"%load_ext autoreload\n",
Expand All @@ -12,8 +14,10 @@
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"execution_count": 2,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"from workflow_widgets import WorkflowWidget, WorkerPoolWidget\n",
Expand All @@ -25,8 +29,10 @@
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"execution_count": 3,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import traitlets as tr"
Expand All @@ -41,15 +47,15 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 4,
"metadata": {
"scrolled": false
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c09f01d020e945ae890a0c436481a296",
"model_id": "d81d0aa6cfe44978978257c16eb70268",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -62,36 +68,42 @@
}
],
"source": [
"WorkflowWidget(example_wf)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"example_wf.get_task_by_name('echo_task_2').log_path"
"wpw = WorkerPoolWidget()\n",
"wpw.add_pool(\"Test\", 3)\n",
"wpw"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"metadata": {
"scrolled": true
"scrolled": false
},
"outputs": [],
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "35bbdc1a631d439cb987f48769469bac",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"A Jupyter Widget"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"wpw = WorkerPoolWidget()\n",
"wpw"
"ww = WorkflowWidget(example_wf, wpw)\n",
"ww"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"wpw.add_pool(\"Example Pool\", 4)"
Expand Down
Loading

0 comments on commit 7bce6c7

Please sign in to comment.