79590443

Date: 2025-04-24 11:26:53
Score: 1
Natty:
Report link

I tried all of the above but nothing worked.
On the other hand, below you can find a quick solution that worked for me:

notebook_path = IPython.get_ipython().user_ns.get("__vsc_ipynb_file__")

I suspect this only works if you are using VSC as your ide.

Reasons:
  • Blacklisted phrase (1): but nothing work
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Marco Tuccio