Jovian
⭐️
Sign In
In [1]:
!pip install jovian -q
In [2]:
import jovian
In [4]:
jovian.commit()
[jovian] Saving notebook..
[jovian] Creating a new notebook on https://jvn.io [jovian] Please enter your API key (from https://jvn.io ):
·························································································································································································································································································································
[jovian] Error: The current API key is invalid or expired.
[jovian] Please enter your API key (from https://jvn.io ):
·························································································································································································································································································································
--------------------------------------------------------------------------- ApiError Traceback (most recent call last) <ipython-input-4-7f2017c1a3df> in <module> ----> 1 jovian.commit() ~\Anaconda3\lib\site-packages\jovian\__init__.py in commit(secret, nb_filename, capture_env, env_type, notebook_id) 95 96 # Upload the notebook & create/update the gist ---> 97 res = create_gist_simple(nb_filename, notebook_id, secret) 98 if res is None: 99 return ~\Anaconda3\lib\site-packages\jovian\utils\api.py in create_gist_simple(filename, gist_slug, secret) 86 def create_gist_simple(filename=None, gist_slug=None, secret=False): 87 """Upload the current notebook to create a gist""" ---> 88 auth_headers = _h() 89 90 nb_file = (filename, open(filename, 'rb')) ~\Anaconda3\lib\site-packages\jovian\utils\api.py in _h() 69 def _h(): 70 """Create authorizaiton header with API key""" ---> 71 return {"Authorization": "Bearer " + get_api_key(), 72 "x-jovian-source": "library", 73 "x-jovian-library-version": __version__, ~\Anaconda3\lib\site-packages\jovian\utils\api.py in get_api_key() 61 key, source = request_api_key(), 'request' 62 if not validate_api_key(key): ---> 63 raise ApiError('The API key provided is invalid or expired.') 64 write_api_key(key) 65 return key ApiError: The API key provided is invalid or expired.
In [ ]: