-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Literate.jl #1
Comments
Hi, I remember generating these as Python notebooks from a hacked-together web scraper and notebook injector, but I can't seem to find the original code. I only recently mutated these notebooks to work with Julia. I might be adventurous one day and see if I can port this more cleanly (like dropping the Python dependency 100%), then it might be worth while to migrate to Pluto. As I understand it Pluto source files are text files that works well with version control. I don't know Literate.jl, what would the workflow look like? Are there any benefit to Pluto? |
Thanks for responding. |
Okay cool, I see the point of Literate.jl. So it's basically an annotate julia file that can be used either standalone, or be converted to notebooks. That does sound useful. So what I'll probably do is, write a new scraper (I lost the old one), and target a Literate.jl type julia file. So my main idea with this repo was for me to learn Julia. I already had the
|
I guess if your interface is something like if solution_21() == 456 # for problem 23, the solution should be 456
correct(md"Correct! :partying_face: ")
else
warn()
end
...
export solution_20, solution 21, solution_22...
You can then include the test files like @testset "1-25" begin
@test solution_1() == 42
@test solutiion_2() == 69
....
end That seems friendly to the script/test/edit workflow.
|
Okay, I added a Project Euler scraper so that this project can somewhat stay up to date with new Project Euler puzzles. I have also added the output of the scraper in the repository:
|
Awesome! Thanks a lot! |
This repo is great!
Thank you so much for making it.
Sorry to bother, but is there anyway to upload the notebooks as Literate.jl files?
The mutable state of the notebooks is a real drag for git work, and the Conda dependency can be a bit heavy.
I understand if it doesn't get made but appreciate it anyways.
Thanks for your time!
The text was updated successfully, but these errors were encountered: