Allowing jupyterlab to show hidden folders in Sagemaker studio

0

How do i allow sagemaker jupyterlab to show the hidden folders / files on the left penel? I tried to modify jupyter_notebook_config and jupyter_server_config file and added the line c.ContentsManager.allow_hidden = True but still no luck. Is it possible to allow to show the hidden files. I Would like to be able to navigate to python library files within the python environment and modify them as I am developing.

Thanks

  • 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?

fuad
질문됨 6달 전206회 조회
1개 답변
0
수락된 답변

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:


  1. Open a terminal in Studio.
  2. run “conda activate studio” in terminal
  3. 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
  4. 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.
  5. Run "netstat -tulpn | grep :8888" in terminal to find the PID of JupyterLab.
  6. Run "kill <PID>" in the terminal to restart JupyterLab for the configuration to take effect.
  7. Wait for JupyterLab to restart.
  8. After restart, go to Settings.
  9. Choose Advanced Settings Editor.
  10. 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

AWS
답변함 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠