- Newest
- Most votes
- Most comments
Hello,
I understand that you are trying to view the hidden files and folders in Sagemaker Studio from the console and would like to gather more information on the same.
In order to be able to view the hidden files on my end, I created a file and made it hidden by adding a dot (.) at the beginning of the file, and I was no longer able to view the file from the file browser in Studio. Then I ran a few commands in the terminal, as below:
Steps:
- Open a terminal in Studio.
- run “conda activate studio” in terminal
- Then run "jupyter notebook —generate-config" in the terminal and note the path of the file created for the next step, which should be /home/sagemaker-user/.jupyter/jupyter_notebook_config.py
- run "echo "c.ContentsManager.allow_hidden = True" | tee -a /home/sagemaker-user/.jupyter/jupyter_notebook_config.py" In terminal, this is the configuration we need to show hidden files and folders.
- Run "netstat -tulpn | grep :8888" in terminal to find the PID of JupyterLab.
- Run "kill <PID>" in the terminal to restart JupyterLab for the configuration to take effect.
- Wait for JupyterLab to restart.
- After restart, go to Settings.
- Choose Advanced Settings Editor.
- Under "File browser" Settings, check "Show hidden files".
After following the above-mentioned steps, I was able to view the hidden files and folders in the Sagemaker Studio.
If you have any difficulty verifying any of the above-mentioned points or if you still run into issues, please reach out to AWS Support [3] (Sagemaker) along with your issue or use case in detail, and we would be happy to assist you further.
References:
[1] https://matttriano.org/2021-08-13-configuring-jupyterlab-p1/
[2] https://github.com/jupyterlab/jupyterlab/issues/2049#issuecomment-451312619
[3] Creating support cases and case management - https://docs.aws.amazon.com/awssupport/latest/user/case-management.html#creating-a-support-casehttps://docs.aws.amazon.com/awssupport/latest/user/case-management.html#creating-a-support-case
Made a 55-second video based on your answer, demonstrating these steps -- thanks! https://youtube.com/shorts/Zx0hgcy4VZM?si=xaUJBdnSY2e7jh9h
Relevant content
- asked 4 months ago
- asked 21 days ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago
What is the path of the files you want to access? Are they really hidden (ie inside a path starting with
.
), or just at a different root than the one shown by SM Studio?