ines / course-starter-python

👩‍🏫🐍 Starter repo for building interactive Python courses
https://course-starter-python.netlify.com
MIT License
504 stars 118 forks source link

Using gitlab doesn't work #9

Open NixBiks opened 5 years ago

NixBiks commented 5 years ago

Hi @ines

It seems that the juniper settings in meta.json is only valid for GitHub repositories?

Looking in src/components/juniper.js I see that you have

const binderUrl = `${url}/build/gh/${repo}/${branch}`

But when I visit the Binder ui then it seems the url are

https://mybinder.org/v2/gl/nixd%2Fpython-starter-course/binder

instead of

https://mybinder.org/v2/gh/nixd/python-starter-course/binder

I get v2 instead of build, gl instead of gh and %2F instead of / (last can be fixed in ${repo})

EDIT

Seeing your answer in this thread I might just have my juniper in a github repo but itself (if that works - still a bit confused about those links).

ines commented 5 years ago

I think the main difference here is gl instead of gh? %2F == / and I think the build URL is just the internal Binder URL to connect to from JupyterLab? You could just try and change it and see what happens?