aws-samples / sagemaker-studio-lifecycle-config-examples

MIT No Attribution
78 stars 51 forks source link

Add autocomplete / code assistance tooling setup example #14

Closed athewsey closed 2 years ago

athewsey commented 2 years ago

Issue #, if available: N/A

Description of changes:

With this week's launch of JupyterLab v3 for SageMaker studio (🥳), and as detailed with screenshots on the accompanying blog post (👏), users are now able to enjoy advanced IDE code assistance tools like autocomplete, hover tips and so on - via the jupyterlab-lsp extension.

There's a snippet in the blog showing how to set this up via Studio lifecycle configurations, but:

Therefore proposing to add a sample to this repo covering the theme of LSP-based coding assistance tool installation and setup.

Testing done:

The current draft script sets up LSP with Python and Bash support, configures continuous hinting to give a more IDE-like behaviour, and increases the default max-line-width of the pycodestyle linter.

Tested on a new domain in us-east-1 that the features get set up correctly when a JLabv3 server is launched, and skipped with an info message in CloudWatch when a JLabv1 server is launched.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.