question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Execute time not showing in notebook with time stamps in the metadata

See original GitHub issue

Hello,

I’m having issues getting this extension to work. I’ve tried my best to follow the instructions in the README using pip install jupyterlab_execute_time and making sure that I to enable cell timing in the notebook via Settings->Advanced Settings Editor->Notebook: {"recordTiming": true}.

The software versions that I’m using are

$ jupyter --version jupyter core : 4.7.1 jupyter-notebook : 6.3.0 qtconsole : 5.0.3 ipython : 7.22.0 ipykernel : 5.5.3 jupyter client : 6.1.12 jupyter lab : 3.0.14 nbconvert : 6.0.7 ipywidgets : 7.6.3 nbformat : 5.1.3 traitlets : 5.0.5

jupyterlab-execute-time : 2.0.2

I don’t know if this is an issue with the M1 Apple Silicon. I’m running macOS 11.3 and I installed Python 3.9.4 with brew.

The metadata is being recorded correctly, because the time stamps and wall times show up correctly when I open the notebook on a different machine that also uses juypterlab-execute-time. So it is not like this issue. It’s a new installation of JupyterLab v3.0.14, so I don’t think I have any holdover issues like this one. I tried running jupyter labextension enable jupyterlab-execute-time, but nothing changed, and when I list the extensions I’m using it doesn’t return anything.

$ jupyter labextension list JupyterLab v3.0.14

I know there are a lot of issues and stackoverflow questions that have been opened involving the time not showing. This is the only extension that I use and I really appreciate the work that’s been put into it. I’d be grateful for any help or insight. Let me know what kind of details you may need.

Thank you

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mlucoolcommented, May 3, 2021

Glad it works. Closing.

0reactions
zyrxvocommented, Apr 30, 2021

Thank you! The development install process is working.

I had previously installed nodejs using brew. I followed the developer install process in the README by doing the following starting in the jupyterlab-execute-time folder:

jlpm jupyter labextension develop . --overwrite jlpm run build

I then restarted JupyterLab.

The console log now says

[Debug] Starting application in workspace: “default” (jlab_core.26a554263e541eb0c66a.js, line 2) [Log] JupyterLab extension jupyterlab-execute-time is activated! (lib_index_js.f9b682e4bbf08a02ebe3.js, line 305) [Debug] Starting WebSocket: ws://localhost:8888/api/kernels/9fed55fc-e07c-4c8a-8d06-0696848a4ec2 (jlab_core.26a554263e541eb0c66a.js, line 2) [Debug] Starting WebSocket: ws://localhost:8888/api/kernels/9fed55fc-e07c-4c8a-8d06-0696848a4ec2 (jlab_core.26a554263e541eb0c66a.js, line 2) [Debug] Starting WebSocket: ws://localhost:8888/api/kernels/9fed55fc-e07c-4c8a-8d06-0696848a4ec2 (jlab_core.26a554263e541eb0c66a.js, line 2)

and the time stamps and execution time now show up for each cell.

Thanks again for the help. I’m not sure why the pip install jupyterlab_execute_time didn’t install correctly, but the developer installation is installed and seems to be working correctly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Execute Time - Unofficial Jupyter Notebook Extensions
When the kernel finishes executing the cell, the area is updated with the duration of the execution. The timing information is stored in...
Read more >
Execution duration doesn't show when using R kernel - only ...
As can be seen from the above image, the extension only shows the datetime stamp when using R kernel but the execution duration...
Read more >
jupyter notebook - How to disable the execution info ...
When I look at the . ipynb source code this is stored as JSON as thus (prettified): "metadata": { ... "executionInfo": { "status":...
Read more >
Working with timestamp with time zone in your Amazon S3 ...
When working with the TIMESTAMPTZ data type, reads and writes use the time zone of the client user machine. When no time zone...
Read more >
jupyterlab-execute-time - PyPI
This is a notebook metadata setting and not a plugin setting. The plugin just displays this data. Contributing. Development install. Note: You will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found