JupyterLab does not prompt for permission to control other applications using xlwings on M2 mac
Description
I am experiencing an issue where JupyterLab does not prompt for permission to control other applications when using xlwings on my M2 macbook pro. This issue prevents me from accessing and modifying other files through xlwings within JupyterLab. This issue does not occur, when using VS Code, which prompts the permission and allows to write "Hello world" in the first cell in excel.
Reproduce
To reproduce the issue, please follow these steps:
- Launch JupyterLab on macOS.
- Execute the following code snippet in a Jupyter notebook:
import xlwings as xw
# Start Excel
app = xw.App()
# Create a new workbook
wb = xw.Book()
# Add some data to the first cell of the first sheet
wb.sheets[0]['A1'].value = "Hello, world!"
# Save and close
wb.save('Test.xlsx')
wb.close()
# Quit Excel
app.quit()
Context
- Operating System and version: Ventura 13.4.1 (M2 Pro)
- JupyterLab-Desktop version:3.6.1
- Installer: dmg
Troubleshoot Output
CommandError: Command failed: OSERROR: -1743 MESSAGE: The user has declined permission. COMMAND: app(pid=4029).count(each=k.workbook)
Browser Output (required for interface issues after loading)
Paste the output from the DevTools JavaScript console here, if applicable.
Logs (required for issues with loading, server and startup)
Paste the logs from the `main.log` file here (optionally also from `renderer.log`).
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:
Related issue: #667 (JupyterLab Desktop doesn't ask for permission to access the camera).