Learn practical skills, build real-world projects, and advance your career
import jovian
jovian.commit()
[jovian] Attempting to save notebook.. [jovian] Please enter your API key ( from https://jovian.ai/ ): API KEY:
·······························································································································································································································································································································
[jovian] Error: The current API key is invalid or expired.
[jovian] Please enter your API key ( from https://jovian.ai/ ): API KEY:
·······························································································································································································································································································································
--------------------------------------------------------------------------- ApiError Traceback (most recent call last) <ipython-input-4-7f2017c1a3df> in <module> ----> 1 jovian.commit() ~/anaconda3/lib/python3.8/site-packages/jovian/utils/commit.py in commit(message, files, outputs, environment, privacy, filename, project, new_project, git_commit, git_message, **kwargs) 195 196 # Create or update gist (with title and ) --> 197 res = api.create_gist_simple(filename, project_id, privacy, project_title, message) 198 slug, owner, version, title = res['slug'], res['owner'], res['version'], res['title'] 199 username = owner['username'] ~/anaconda3/lib/python3.8/site-packages/jovian/utils/api.py in create_gist_simple(filename, gist_slug, privacy, title, version_title) 52 def create_gist_simple(filename=None, gist_slug=None, privacy='auto', title=None, version_title=None): 53 """Upload the current notebook to create/update a gist""" ---> 54 auth_headers = _h() 55 56 with open(filename, 'rb') as f: ~/anaconda3/lib/python3.8/site-packages/jovian/utils/api.py in _h() 10 def _h(): 11 """Create authorization header with API key""" ---> 12 return {"Authorization": "Bearer " + get_api_key(), 13 "x-jovian-source": "library", 14 "x-jovian-library-version": __version__, ~/anaconda3/lib/python3.8/site-packages/jovian/utils/credentials.py in get_api_key() 267 key, _ = request_api_key(), 'request' 268 if not validate_api_key(key): --> 269 raise ApiError('The API key provided is invalid or expired.') 270 write_api_key(key) 271 return key ApiError: The API key provided is invalid or expired.