digital-science / dimcli

Python client and CLI for scientometrics and research analytics using the Dimensions API.
https://digital-science.github.io/dimcli/getting-started.html
MIT License
43 stars 6 forks source link

Include dependencies and login logic for colab #50

Closed lambdamusic closed 4 years ago

lambdamusic commented 4 years ago

Goal: have a coupe of commands only to get up and running in a jupyter environment.

import dimcli
# if pandas and plotly are preloaded, no need to load them again
dimcli.set_environment("colab")
# preload google-specific stuff and set env variable
dimcli.login()
# login based on env eg getpass for colab

image

lambdamusic commented 4 years ago

Tried out shell magics but they fail to load https://stackoverflow.com/questions/58392596/how-to-run-ipython-shell-magic-from-a-script