Learn practical skills, build real-world projects, and advance your career
Created 5 years ago
print("Hello Jovian!")
Hello Jovian!
import jovian
jovian.commit()
[jovian] Saving notebook..
[jovian] Creating a new notebook on https://jvn.io/
[jovian] Please enter your API key ( from https://jvn.io/ ):
API Key:········
[jovian] Error: The current API key is invalid or expired.
[jovian] Please enter your API key ( from https://jvn.io/ ):
API Key:········
---------------------------------------------------------------------------
ApiError Traceback (most recent call last)
<ipython-input-3-7f2017c1a3df> in <module>
----> 1 jovian.commit()
//anaconda3/lib/python3.7/site-packages/jovian/__init__.py in commit(secret, nb_filename, files, capture_env, env_type, notebook_id, create_new, artifacts)
116
117 # Upload the notebook & create/update the gist
--> 118 res = create_gist_simple(nb_filename, notebook_id, secret)
119 if res is None:
120 return
//anaconda3/lib/python3.7/site-packages/jovian/utils/api.py in create_gist_simple(filename, gist_slug, secret)
104 def create_gist_simple(filename=None, gist_slug=None, secret=False):
105 """Upload the current notebook to create a gist"""
--> 106 auth_headers = _h()
107
108 with open(filename, 'rb') as f:
//anaconda3/lib/python3.7/site-packages/jovian/utils/api.py in _h()
71 def _h():
72 """Create authorization header with API key"""
---> 73 return {"Authorization": "Bearer " + get_api_key(),
74 "x-jovian-source": "library",
75 "x-jovian-library-version": __version__,
//anaconda3/lib/python3.7/site-packages/jovian/utils/api.py in get_api_key()
63 key, _ = request_api_key(), 'request'
64 if not validate_api_key(key):
---> 65 raise ApiError('The API key provided is invalid or expired.')
66 write_api_key(key)
67 return key
ApiError: The API key provided is invalid or expired.
jovian.commit()
[jovian] Saving notebook..
[jovian] Creating a new notebook on https://jvn.io/
[jovian] Please enter your API key ( from https://jvn.io/ ):
API Key:········
[jovian] Error: The current API key is invalid or expired.
[jovian] Please enter your API key ( from https://jvn.io/ ):