-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
Issue 1044 google colab #1061
Issue 1044 google colab #1061
Conversation
…osa/PyBaMM into issue-1044-google-colab
Codecov Report
@@ Coverage Diff @@
## develop #1061 +/- ##
===========================================
+ Coverage 97.63% 97.72% +0.08%
===========================================
Files 237 237
Lines 12371 12413 +42
===========================================
+ Hits 12078 12130 +52
+ Misses 293 283 -10
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. One last thing to check is does installing pybamm overwrite the local installation or not? i.e. if the examples on develop are changed to work with only a more recent version of develop than the latest release, will that still work? Also, can you add the colab badge to the readme? And we can remove the binder badges (in readme and the notebooks readme) too
I have checked and it seems that it does not overwrite the local installation. I tried it on my computer and I could still access stuff that has not been released even after running the installation command. I assume you mean adding the Google Colab badge in the main README, so that should now be fixed. |
Should the google colab link point to master or develop? |
I thought that, given that in Google Colab we install the latest release rather than the develop branch, it would be better to run the master branch. |
Duh! Happy to merge then, though we should do a release so that the line |
Description
Added an extra line to notebooks (before importing PyBaMM) to install PyBaMM (if not installed) so they can be run in Google Colab. I fixed
run-tests.py
to catch if a line in a notebook had magic so ipython is called (before it only caught if a whole cell had magic).Fixes #1044
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ flake8
$ python run-tests.py --unit
$ cd docs
and then$ make clean; make html
You can run all three at once, using
$ python run-tests.py --quick
.Further checks: