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.

Setting Folder as Current Working Directory

See original GitHub issue

Is your feature request related to a problem? Please describe. I’m always frustrated when I just had started a new session and when navigating on files I click by accident on Up one level. It is very helpful to be able to navigate up on the directories and see all folders listed on the root directory /. The frustration is not being able to go back and having the folders and files listed as /content/ was the current working directory.

Describe the solution you’d like I would like to, when right-click on a folder, have the option to either open or set as working directory so that the visualization on the file explorer only shows the content under that folder.

  • Not necessary I need the folder to be set as working directory on the sense of simplifying the path for open files with python. I am more concerned with the visualization on the file explorer. If both are doable, even better!

Describe alternatives you’ve considered I have no current alternative, other than Factory reset runtime.

Here are some images showing the issue

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
buyudtxcommented, Sep 28, 2021

click the “%cd /content/” in a cell ,which makes me return the content folder

0reactions
colaboratory-teamcommented, Mar 24, 2022

Internal tracking bug: b/226596589

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get and change the current working directory in Python
You can change (set) the current working directory with os.chdir() . Specify the destination path in the argument. It can be absolute or ......
Read more >
How to set the current working directory? - Stack Overflow
Try os.chdir. import os os.chdir(path). Change the current working directory to path. Availability: Unix, Windows.
Read more >
Change current working directory with Python - GeeksforGeeks
To change the current working directory(CWD) os.chdir() method is used. This method changes the CWD to a specified path. It only takes a...
Read more >
How to Get and Change the Current Working Directory in Python
To find the current working directory in Python, use os.getcwd(), and to change the current working directory, use os.chdir(path).
Read more >
How to change current working directory in python - thisPointer
Change Current Working Directory in Python ; import os. import os ; os.chdir(path). os.chdir(path) ; print("Current Working Directory " , os.getcwd()). print(" ...
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