Skip to content

Commit

Permalink
Update example notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Jan 3, 2024
1 parent 7b03361 commit 61baeed
Showing 1 changed file with 3 additions and 64 deletions.
67 changes: 3 additions & 64 deletions examples/notebook_workflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -71,70 +71,9 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #fb8c00; text-decoration-color: #fb8c00\">Cannot run function </span><span style=\"color: #ff7043; text-decoration-color: #ff7043; font-weight: bold\">_get_inset</span><span style=\"color: #fb8c00; text-decoration-color: #fb8c00\"> in a jupyter notebook</span> <span style=\"color: #fb8c00; text-decoration-color: #fb8c00\">Try setting the correct backend before creating your scene:</span>\n",
"\n",
"<span style=\"color: #f92672; text-decoration-color: #f92672; background-color: #272822\">from</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> vedo </span><span style=\"color: #f92672; text-decoration-color: #f92672; background-color: #272822\">import</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> embedWindow</span><span style=\"background-color: #272822\"> </span>\n",
"<span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">embedWindow(</span><span style=\"color: #66d9ef; text-decoration-color: #66d9ef; background-color: #272822\">None</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span>\n",
"</pre>\n"
],
"text/plain": [
"\u001B[38;2;251;140;0mCannot run function \u001B[0m\u001B[1;38;2;255;112;67m_get_inset\u001B[0m\u001B[38;2;251;140;0m in a jupyter notebook\u001B[0m \u001B[38;2;251;140;0mTry setting the correct backend before creating your scene:\u001B[0m\n",
"\n",
"\u001B[38;2;249;38;114;48;2;39;40;34mfrom\u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34m \u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34mvedo\u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34m \u001B[0m\u001B[38;2;249;38;114;48;2;39;40;34mimport\u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34m \u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34membedWindow\u001B[0m\u001B[48;2;39;40;34m \u001B[0m\n",
"\u001B[38;2;248;248;242;48;2;39;40;34membedWindow\u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34m(\u001B[0m\u001B[38;2;102;217;239;48;2;39;40;34mNone\u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34m)\u001B[0m\u001B[48;2;39;40;34m \u001B[0m\n"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #26a69a; text-decoration-color: #26a69a\">Your scene is ready for rendering, use:</span>\n",
"\n",
"<span style=\"color: #f92672; text-decoration-color: #f92672; background-color: #272822\">from</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> vedo </span><span style=\"color: #f92672; text-decoration-color: #f92672; background-color: #272822\">import</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> show</span><span style=\"background-color: #272822\"> </span>\n",
"<span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">vedo</span><span style=\"color: #f92672; text-decoration-color: #f92672; background-color: #272822\">.</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">show(</span><span style=\"color: #f92672; text-decoration-color: #f92672; background-color: #272822\">*</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">scene</span><span style=\"color: #f92672; text-decoration-color: #f92672; background-color: #272822\">.</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">renderables)</span><span style=\"background-color: #272822\"> </span>\n",
"</pre>\n"
],
"text/plain": [
"\u001B[38;2;38;166;154mYour scene is ready for rendering, use:\u001B[0m\n",
"\n",
"\u001B[38;2;249;38;114;48;2;39;40;34mfrom\u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34m \u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34mvedo\u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34m \u001B[0m\u001B[38;2;249;38;114;48;2;39;40;34mimport\u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34m \u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34mshow\u001B[0m\u001B[48;2;39;40;34m \u001B[0m\n",
"\u001B[38;2;248;248;242;48;2;39;40;34mvedo\u001B[0m\u001B[38;2;249;38;114;48;2;39;40;34m.\u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34mshow\u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34m(\u001B[0m\u001B[38;2;249;38;114;48;2;39;40;34m*\u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34mscene\u001B[0m\u001B[38;2;249;38;114;48;2;39;40;34m.\u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34mrenderables\u001B[0m\u001B[38;2;248;248;242;48;2;39;40;34m)\u001B[0m\u001B[48;2;39;40;34m \u001B[0m\n"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/adam/miniconda3/envs/brainglobe/lib/python3.10/site-packages/traittypes/traittypes.py:97: UserWarning: Given trait value dtype \"float64\" does not match required type \"float32\". A coerced copy has been created.\n",
" warnings.warn(\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "bed7f58aa2674e279e1ac7e5b38a09e8",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Plot(antialias=True, axes=['x', 'y', 'z'], axes_helper=1.0, axes_helper_colors=[16711680, 65280, 255], backgro…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"# Set the backend\n",
"import vedo\n",
Expand Down

0 comments on commit 61baeed

Please sign in to comment.