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.

Fails when working from a subfolder

See original GitHub issue

Hello!

I’m running into the following issue. When I am working on a notebook within a subfolder, e.g. if I’m working on subfolder/hello.ipynb.

When I am inside hello.ipynb and I try to go to the definition of a function that is outside of my notebook, I see the relevant file appear inside .jupyter_symlinks, and my file tree looks like

* file_at_root.txt
* subfolder/hello.ipynb
* subfolder/.jupyter_symlinks/path/to/file.py

When I try to go to the external definition, it fails to jump, because this api call returns 404

  • jupyterhub.local/user/my_username/api/contents/.jupyter_symlinks/path/to/file.py

But the following api call would have worked

  • jupyterhub.local/user/my_username/api/contents/subfolder/.jupyter_symlinks/path/to/file.py

So it looks like either the .jupyter_symlinks folder should always be at the root of my jupyter folder, or the path in the URL should include the base path of the notebook itself.

Are you seeing the same thing?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
thoralf-gutierrezcommented, Dec 5, 2019

For me the .jupyter_symlinks appears on its own, I’ve never had to create one.

Reproducible example from home folder that works

  • from the terminal, in jupyter home folder, dorm -rf .jupyter_symlinks/
  • create a new notebook Untitled.ipynb
  • add import json
  • put cursor on json and CTRL + ALT + B and successfully jump to .jupyter_symlinks/usr/lib/python3.5/json/__init__.py
  • notice that .jupyter_symlinks/usr/lib/python3.5/json/__init__.py was created automatically

Reproducible example from subfolder that does not work

0reactions
caizefengcommented, Apr 23, 2020

Exactly the same problem there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sharing files over local network some subfolders gives access ...
I have two windows 10, one desktop and one laptop. Both are connecting to the same network. Both workgroup name are the same...
Read more >
getting error while creating subfolder in Directory python
Try this code below. The lines os.chdir(mypath) and os.getcwd() seems not working for you. for subfolder in subfolders: print('SUBFOLDER OF ...
Read more >
bundledoc fails with subfolder paths (MiKTeX) - TeX
will work on miktex. If you want to find files in subfolders one must add ./ at the begin: ksepwhich -progname=latex .
Read more >
Move to subfolder not working for one or more users ( ONLY)
MTEF","Removing action from the current actions flag..." ... Check the Microsoft Exchange log to find out why the delivery to the subfolder is...
Read more >
Control-M Automation API CLI command 'ctm deploy jobs::get ...
Control-M Automation API CLI command 'ctm deploy jobs::get' fails with ... Folder must have unique job names and subfolder names in the same ......
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