JovianHQ / jovian-py

Collaboration platform for data science projects & Jupyter notebooks
https://www.jovian.ai
112 stars 31 forks source link

Fix bytes error in Python 2.7 #229

Closed aakashns closed 3 years ago

aakashns commented 3 years ago

Fixes the error:

File "/Users/aakashns/Library/Python/2.7/lib/python/site-packages/jovian/utils/clone.py", line 154, in _sanitize_notebook
    return bytes(json.dumps(nb_content), 'utf-8')
TypeError: str() takes at most 1 argument (2 given)

https://stackoverflow.com/questions/42346984/i-am-getting-this-error-typeerror-str-takes-at-most-1-argument-2-given-at/42347165