Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: More easily handle changing the working directory #15904

Open
jnolis opened this issue Jul 31, 2024 · 0 comments
Open

Feature Request: More easily handle changing the working directory #15904

jnolis opened this issue Jul 31, 2024 · 0 comments
Assignees
Labels
feature-request Request for new features or functionality interactive-window Impacts interactive window

Comments

@jnolis
Copy link

jnolis commented Jul 31, 2024

Often times when running notebooks the ideal working directory isn't the base folder. For instance, if you have VSCode open the folder of a repository, it may be the case that all of the code is in the src folder, and you want that as the notebook current directory.

There does not seem to be a straightforward way to specify where the working directory is when launching a new Jupyter Interactive Window.

I think this would be fixed by having an option "Create Interactive Window From Working Directory" and then let the user specify the working directory

Screenshot 2024-07-31 at 11 42 16 AM

I think this is a valid feature to add because all of the current solutions have their own issues:

  1. Within an existing window you can create a cell `%cd /path/to/working/dir%, but then you need to create that cell each time you open a new window
  2. If you are working with a python script in the working directory you can add # %% as a line in the file and when you click "run cell" it will open the interactive window in the right working directory. But then you are polluting your code
  3. You can hard code the working directory in the settings, but this doesn't seem easy to get to nor is it workspace specific

This feature would be helpful for my team (and probably others?) Thank you!!

@jnolis jnolis added the feature-request Request for new features or functionality label Jul 31, 2024
@DonJayamanne DonJayamanne removed their assignment Jul 31, 2024
@amunger amunger added the interactive-window Impacts interactive window label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality interactive-window Impacts interactive window
Projects
None yet
Development

No branches or pull requests

3 participants