
Explanation:
The %sh magic command enables the execution of shell commands within a notebook. pwd stands for 'print working directory', which is a shell command to display the current directory. For more details, refer to the Databricks documentation on notebook code and the Wikipedia page on pwd.
In Databricks Repos, how can you display the current working directory of a notebook?
A
print(sys.path)
B
os.path.abspath()
C
os.environ[‘PYTHONPATH‘]
D
%sh pwd
E
In Databricks Repos, the working directory of any notebook is ‘/databricks/driver’
No comments yet.