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.

Feature request: Support Jupyter notebooks and IPython

See original GitHub issue

I think it can not support jupyter right now, but I hope it could be done lately.

NotImplementedError                       Traceback (most recent call last)
<ipython-input-6-48087d91d6cf> in <module>()
      5     return number
      6 
----> 7 number_to_bits(6)

<decorator-gen-164> in number_to_bits(number)

C:\ProgramData\Anaconda3\lib\site-packages\pysnooper\pysnooper.py in decorate(function, *args, **kwargs)
     70                     write=write, variables=variables,
     71                     depth=depth, prefix=prefix):
---> 72             return function(*args, **kwargs)
     73 
     74     return decorate

<ipython-input-6-48087d91d6cf> in number_to_bits(number)
      1 import pysnooper
      2 
----> 3 @pysnooper.snoop('file.log')
      4 def number_to_bits(number):
      5     return number

C:\ProgramData\Anaconda3\lib\site-packages\pysnooper\tracer.py in trace(self, frame, event, arg)
    180 
    181         now_string = datetime_module.datetime.now().time().isoformat()
--> 182         source_line = get_source_from_frame(frame)[frame.f_lineno - 1]
    183         self.write('{indent}{now_string} {event:9} '
    184                    '{frame.f_lineno:4} {source_line}'.format(**locals()))

C:\ProgramData\Anaconda3\lib\site-packages\pysnooper\tracer.py in get_source_from_frame(frame)
     73             pass
     74     if source is None:
---> 75         raise NotImplementedError
     76 
     77     # If we just read the source from a file, or if the loader did not

NotImplementedError: 

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
cool-RRcommented, Apr 24, 2019

I implemented IPython support! Now just Jupyter support left.

0reactions
cool-RRcommented, Apr 24, 2019

Oh awesome, looks like that fixed Jupyter as well 😃

I made a separate task #43 to add testing for this feature. Any takers?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter and the future of IPython — IPython
Our notebook gallery is an excellent way to see the many things you can do with IPython while learning about a variety of...
Read more >
Does DVC support Jupyter Notebook (.ipynb) Versioning?
DVC doesn't currently have any special integrations for Jupyter, but we've seen users use their notebooks as regular scripts by running them ...
Read more >
Jupyter Notebook inside dashboard - Edge Impulse forum
Hi @Joeri,. Thanks for the feature request! You can actually already develop your own plots, graphs, and more stats by creating your own...
Read more >
Jupyter/Ipython notebook rendering (#1594) · Issues - GitLab
I would like to see this issue reopened as well. The lack of Jupyter notebook support is a deal-braker when chosing between GitHub...
Read more >
Working with Jupyter Notebooks in Visual Studio Code
Jupyter Notebooks in VS Code. Jupyter (formerly IPython Notebook) is an open-source project that lets you easily combine Markdown text and executable Python...
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