Skip to content

pep8 bulk edit - #23

Merged
mlkimmins merged 3 commits into
scalingpythonml:masterfrom
mlkimmins:pep8_jun22
Jun 23, 2023
Merged

mlkimmins merged 3 commits into
scalingpythonml:masterfrom
mlkimmins:pep8_jun22

Conversation

@mlkimmins

Copy link
Copy Markdown
Member

No description provided.

@mlkimmins

Copy link
Copy Markdown
Member Author

@holdenk Reviewing bulk pep8 edits file by file right now.

Comment thread dask/Dask-Ch10_porting.py
setup(is_lab=True)

%%fsql dask
% % fsql dask

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

breaking change but this ex is not included as .py so ok

@mlkimmins mlkimmins left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

Comment thread dask/Dask-Collections.py
# In[ ]:


bag.from_sequence(range(0,1000)).map(lambda x: (x, x)).foldby(lambda x, y: x + y, lambda x, y: x + y)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@holdenk technically pep8 is correct but pretty illegible after this edit. I'm going to undo this and just fit it within 80 char

# In[26]:


iseven = lambda x: x % 2 == 0

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@holdenk I don't think there's a specific reason not to use 'def' construct but lmk if there is.

Comment thread dask/Dask-Ch14-Tuning.py Outdated
#tag::ex_yarn_deployment_CLI_tuning[]
get_ipython().system('dask-yarn submit')
--environment home/mkimmins/anaconda/bin/python --worker-count 20 --worker-vcores 2 --worker-memory 4GiB your_python_script.py
--environment home / mkimmins / anaconda / bin / python - -worker - count 20 - -worker - vcores 2 - -worker - memory 4GiB your_python_script.py

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

autopep8 issues. this is bash and should not be done.

@mlkimmins
mlkimmins merged commit 60bc610 into scalingpythonml:master Jun 23, 2023
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.

1 participant