-
Notifications
You must be signed in to change notification settings - Fork 0
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
Can we turn off pycodestyle on AWS? #35
Comments
( |
You can create a file called
and SageMaker notebooks will pick it up. But it seems to ignore any of the standard locations in the repository itself, so I'm not sure if we can just include a config in the git repo. See: |
Yeah I have no idea......this is clearly not the intended behavior: I can't find a way to get jupyterlab to pick up config files that are local to the repository (which would be ideal, so that the user won't have to configure it themselves). So as far as I can tell, the user will have to deal with this unfortunately--either by setting a pycodestyle config in their Also, apparently you can't submit a support ticket to amazon without a paid support plan. |
@kyleoconnell-NIH, @masmontgomery -- any ideas about this? |
So the config file way isn't working? I haven't worked with that aspect before, though it does sound better if it can work. The most straightforward way would be putting code at the top of each notebook to set ast_node_interactivity to none. Students could turn it back on if they really want to know how they're violating PEP8 formatting. |
The AWS SageMaker JupyterLab picks the config file up if it is located here: Users can also turn off the linting errors in the JupyterLab settings on AWS. The annoying thing about it is that these errors only popped up recently...not sure what that is about. I tried setting the |
The simplest option is probably to instruct users to do this: Settings > Settings Editor > Language Servers > pylsp > uncheck pylsp.plugins.pycodestyle.enabled |
Every line is flagged in some of our notebooks. E.g.,
Submodule_1/Exercises/Submodule_1_Exercise_Pandas_Solution.ipynb
. But they are pointless lints like "too many blank lines" or "imports not at the top".It would be better to turn them off. There must be a way to do this on AWS....
The text was updated successfully, but these errors were encountered: