Hi Barry,
I have managed to create a running version of the minimal lopf example
(
https://www.pypsa.org/examples/minimal_example_lopf.html) on colab:
https://colab.research.google.com/drive/1P_3xJjgoZlWWZsCtM1wyLM38Pr7ma9GU
I had difficulties with the solver 'glpk' at first, but alternatively
'cbc' works just fine.
```
# install solver
!apt-get install coinor-cbc
# adapted from
https://stackoverflow.com/questions/49202649/how-to-build-libraries-via-conda-on-colab-research
!wget -c
https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
!chmod +x
Anaconda3-5.1.0-Linux-x86_64.sh
!bash ./
Anaconda3-5.1.0-Linux-x86_64.sh -b -f -p /usr/local
!conda install -y --prefix /usr/local -c conda-forge pypsa
import sys
sys.path.append('/usr/local/lib/python3.6/site-packages/')
```
The installation of anaconda, cbc and pypsa (+dependencies) takes about
90 seconds.
I hope this solves your problem!
Best wishes,
Fabian
On 25/06/2019 23:20, Barry McMullin wrote:
> Dear all -
>
> Just wondering if anyone has managed to get pypsa to run inside google
> collaboratory
> <
https://colab.research.google.com/notebooks/welcome.ipynb> (colab)?
> /
>
> *Séanadh Ríomhphoist/Email Disclaimer*
>
> *Tá an ríomhphost seo agus aon chomhad a sheoltar leis faoi rún agus is
> lena úsáid ag an seolaí agus sin amháin é. Is féidir tuilleadh a léamh
> anseo. <
https://sites.google.com/view/seanadh-riomhphoist>*
>
> *This e-mail and any files transmitted with it are confidential and are
> intended solely for use by the addressee. Read more here.
> <
https://sites.google.com/view/dcu-email-disclaimer>*
>
>
>
> /
>
>
>
> <
https://www.facebook.com/DCU/><
https://twitter.com/DublinCityUni><
https://www.linkedin.com/company/dublin-city-university><
https://www.instagram.com/dublincityuniversity/?hl=en><
https://www.youtube.com/user/DublinCityUniversity>
>
> --
> You received this message because you are subscribed to the Google
> Groups "pypsa" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
pypsa+un...@googlegroups.com
> <mailto:
pypsa+un...@googlegroups.com>.
> To post to this group, send email to
py...@googlegroups.com
> <mailto:
py...@googlegroups.com>.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msgid/pypsa/ffad791c-4f8a-4933-902b-35b415ac2831%40googlegroups.com
> <
https://groups.google.com/d/msgid/pypsa/ffad791c-4f8a-4933-902b-35b415ac2831%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit
https://groups.google.com/d/optout.
--
Karlsruhe Institute of Technology (KIT)
Institute for Automation and Applied Informatics (IAI)
Fabian Neumann, M.Sc.
PhD Student in Energy System Modelling
Phone:
+49 721 608 25707
Mobile:
+49 171 2943831
Fax:
+49 721 608 22602
Website:
https://www.iai.kit.edu/ESM.php
Github: fneum
LinkedIn: fabian-neumann-renewables
ORCID: 0000 0001 8551 1480
Building 445, Office 304
Campus North
Hermann-von-Helmholtz-Platz 1
76344 Eggenstein-Leopoldshafen
KIT – the Research University in the Helmholtz Association