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

Question & Suggestion #17

Open repo-code opened 4 years ago

repo-code commented 4 years ago

Hello,

I have 4 questions and 1 suggestion.

My questions: 1- Can I use this template for commercial use? I am selling online courses and I need to use online editor for my courses. I was using DataCamp light, but I don't like to put DataCamp logo and URL everywhere inside my website.

  1. I see the code in the course-starter-python/exercises/test.py is very difficult. Can I use Ex().has_equal_ast(exact=False) ? is there any simple code to match the answer with solution?

3- How to embed an interactive code widget ( with run button ) on a website or a blog ( like yours in the home page of https://spacy.io )?

4- Is there any way to write the title and description of "chapter1.md" RTL?

My suggestion: I suggest you create a Wordpress plugin and also I suggest you make a video to explain how to use this project on any website or blog to make any website or blog interactive.

Finally, big thanks to you for this brilliant project, I really like it and I think this project better than DataCamp light and it will help many course creator around the world.

ines commented 4 years ago

Thanks a lot!

1- Can I use this template for commercial use? I am selling online courses and I need to use online editor for my courses. I was using DataCamp light, but I don't like to put DataCamp logo and URL everywhere inside my website.

Yes, the source code is MIT licensed, so you can use it commercially.

I see the code in the course-starter-python/exercises/test.py is very difficult. Can I use Ex().has_equal_ast(exact=False) ? is there any simple code to match the answer with solution?

You can find some more details on the test format here: https://github.com/ines/course-starter-python#adding-tests

I hope it's not too difficult ā€“ the idea was to model it more closely to native Python tests so you can just write assertions instead of having to know a custom test framework and API. __solution__ is the string value of the submitted code, and you also have access to any variables defined in the solution code and can perform any checks you want, in Python. You can probably implement your own logic that does more checks yourself if needed.

3- How to embed an interactive code widget ( with run button ) on a website or a blog ( like yours in the home page of spacy.io )?

See here: https://github.com/ines/juniper

4- Is there any way to write the title and description of "chapter1.md" RTL?

I think adding direction: rtl in the respective styles should work.

I suggest you create a Wordpress plugin and also I suggest you make a video to explain how to use this project on any website or blog to make any website or blog interactive.

This is an interesting idea, but I don't have time for this, sorry! This is a personal open-source project and I chose to publish it to make it easier for other to use my code if they want to.