From c9f361ca7fc0b54f47a836cd3325d4e45b984448 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Thu, 14 May 2026 20:59:55 -0700 Subject: [PATCH] Install bokeh in venv in ros2_tracing analysis tutorial (#6763) Signed-off-by: Christophe Bedard Co-authored-by: Tomoya Fujita (cherry picked from commit 75dcc919f4f43d192045d7bbbdf0c88914b271b3) --- .../Tutorials/Advanced/ROS2-Tracing-Trace-and-Analyze.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/Tutorials/Advanced/ROS2-Tracing-Trace-and-Analyze.rst b/source/Tutorials/Advanced/ROS2-Tracing-Trace-and-Analyze.rst index b269370ad3..60724f6188 100644 --- a/source/Tutorials/Advanced/ROS2-Tracing-Trace-and-Analyze.rst +++ b/source/Tutorials/Advanced/ROS2-Tracing-Trace-and-Analyze.rst @@ -158,10 +158,15 @@ Install Jupyter notebook and bokeh, and then open the sample notebook. .. code-block:: console - $ pip3 install bokeh + $ source install/setup.bash + $ python3 -m venv venv --system-site-packages + $ source venv/bin/activate + $ pip3 install bokeh ipykernel + $ python3 -m ipykernel install --user --name=venv $ jupyter notebook ~/tracing_ws/src/tracetools_analysis/tracetools_analysis/analysis/callback_duration.ipynb This will open the notebook in the browser. +Click ``Kernel``, then ``Change kernel``, and select ``venv``. Replace the value for the ``path`` variable in the second cell to the path to the trace directory: