Need to disable download option from jupyter lab session in posit workbench

Hi Team,

Our team wants to disable open new tab in browser in the file menu,even though we have disable the extension still we are getting option.
how can we acheive this?

is a similar topic on disabling menu entries- you could try that?

1 Like

Hi @manics ,

Thanks for your response.

we have checked below json code in application context menu,but it is not working
it is creating open new browser tab & showing as disabled.
{
“contextMenu”: [
{
“command”: “notebook:disable”,
“selector”: “.jp-DirListing-content”,
“args”: {
“isContextMenu”: true
},
“disabled”: true
},
{
“command”: “notebook:export-to-format”,
“selector”: “.jp-DirListing-item[data-file-type="notebook"]”,
“rank”: 3,
“args”: {
“format”: “markdown”,
“label”: “Open in New Browser Tab”
}
},
{
“command”: “filebrowser:open”,
“selector”: “.jp-DirListing-item[data-file-type="notebook"]”,
“args”: {
“label”: “Open in New Browser Tab”
},
“disabled”: true
}
]
}

we need to disable existing open new browser tab, if you right click it.
any suggetions please.

I don’t know, but hopefully someone from the JupyterLab team will be able to help.

Thank you for a comment

Hi
Anyone have update on this issue please

Hi Team,
I got the solution for the disable Open in New Browser Tab.
{
“contextMenu”: [
{
“command”: “filebrowser:open-browser-tab”,
“selector”: “.jp-DirListing-item[data-isdir="false"]”,
“disabled”: true
}
]
}