Closed arichar6 closed 4 years ago
Maybe we can add a jupyter notebook that shows how to run the example, and then plot the outputs?
I think that sounds like a great idea, sorry for not responding last week I don't visit this repo very often haha. I've never used jupyter notebooks, but I'd be willing to try to learn the basics of it for this.
Since pip install turbopy
now works, this repo can now connect to mybinder. Try this out, then enter import turbopy
in the notebook that opens up:
@padamson you might get a kick out of this
Very cool and good to know. Thanks!
I've spent some time learning the basics of the Jupyter notebook and I'd be interested in working on this, but I'm not really sure where to start. Should the "tutorial" more or less be an explaination of how to set up and run the block on spring app?
I would look at the PlasmaPy examples for inspiration on what makes a good example notebook for this type of repo.
How do you add a Jupyter notebook to github? If I try to add a file with the ipynb extension nothing appears.
Check that your .gitignore isn't preventing you from adding files with extension .ipynb
.
The block_on_spring .gitignore doesn't seem to ignore .ipynb files, and there's already a test.ipynb file on the repo. However, if I try to create a new file with the .ipynb extension, a notebook doesn't appear. it loads for a few seconds and then says that something went wrong.
What "loads for a few seconds"? And what is the error message? Can you describe the steps you tried?
Sorry i've been so vague. I clicked add file in github and named the file tutorial.ipynb. When I click on the file to edit it, it just says "something went wrong"
That's probably because a jupyter notebook has a specific format that it uses (structured plain text). It was probably trying to parse the notebook format, but couldn't because it was just a blank file.
You should create the notebook on your local machine first. That way you can also get it tested and working before creating a PR to add it to the repo.
Thanks @AOstenfeld for your work on this notebook!
What do you think about creating a "turboPy app tutorial" based on this simple app? It could be a fairly straightforward project, which I think could be completed in a reasonable amount of time. As our PM and intern-admin, I'd like to get your thoughts on this.
@GarethTMorgan @carolinegsun