Now I use file-> download as->python(*.py) in jupyter notebook's UI to convert jupyter notebook to python script. However, it will convert all the \
to a long spaces (maybe a tab), e.g.
In Jupyter notebook:
test_users_df = item_info_df.where(item_info_df.split=='test')\
.select(['user_id'])\
.distinct()\
.orderBy(['user_id'])
Converted python script will become:
test_users_df = item_info_df.where(item_info_df.split=='test')
.select(['user_id']) .distinct()
.orderBy(['user_id'])
Is there a way to keep the original format?