Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make jupyter.runStartupCommands show in the workspace settings #16038

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dbirks
Copy link

@dbirks dbirks commented Sep 13, 2024

Fixes #15626

Just a small change to make jupyter.runStartupCommands not only show in the User settings.

Built the extension and confirmed that it now auto-completes in a .vscode/settings.json file (which it wasn't doing before):

image

And that it shows in the Workspace tab in the Settings:

image

Thanks for all the effort in maintaining this!

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Sep 13, 2024

Thank you for the pull request, however we cannot accept this at this stage as we have concerns over making this setting a workspace scoped setting.
Basically we haven't decided whether to go ahead and enable this setting for workspaces.
@rebornix /cc

@DonJayamanne DonJayamanne self-assigned this Sep 13, 2024
@dbirks
Copy link
Author

dbirks commented Sep 13, 2024

Ah ok, I'm not sure what those concerns are, but maybe I can make my best case briefly and we'll see if we're talking past each other. 🙂

I've found that Azure Synapse and Microsoft Fabric give you a spark variable pre-initialized with the SparkSession, and without this jupyter.runStartupCommands, I've not found a way to duplicate what the live environment is doing. Without this there's that little bit of friction each time of having to add some cells just to your local notebook to get the same behavior.

Having jupyter.runStartupCommands in the User settings is amazing, as I can now mimic the behavior locally, but I can't easily share that setting with the other people on my team, as I can't add it to the .vscode/settings.json in the repo.

Quite a big part of why extensions are helpful for me is their ability to be shared, both by defining the extensions themselves in the extensions.json as you know, and the config for them in the settings.json. Without that I'm limited to just making notes in a readme, and can't source control all of my config directly.

Either way, thanks for all your work on this extension. It's a very helpful thing to have in the toolbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kernel startup commands should be definable at the workspace level not just user.
2 participants