AaltoSciComp / python-for-scicomp

Python for scientific computing course
https://aaltoscicomp.github.io/python-for-scicomp/
Other
20 stars 29 forks source link

Don't use bash magics in Jupyter lesson #64

Open bast opened 4 years ago

bast commented 4 years ago

Does not work for some learners on windows and they might think that all magics won't work.

rkdarst commented 4 years ago

Also I would like a good line magic to demonstrate. The only non-abstract one I could find was timeit (both line and cell), so didn't know what to demonstrate. Ideally different ones for the demo and the exercise...

bast commented 4 years ago

the matplotlib one is important and i will show it later

annefou commented 4 years ago

matplotlib + timeit

or/and mention %prun, %lprun, %memit, %mprun

tpfau commented 10 months ago

Bumping this. Either remove completely or use exclusively magics which are built-in and not OS dependent. E.g.

%%bash

requires a unix system. timeit should be ok.

bast commented 10 months ago

Please really avoid having bash magics in the material. Otherwise instructors will show them and it won't work for 50% of the learners who are on Windows.

Notebooks that use bash magics are often less reusable and less movable to other machines. Often they try to do something with the file system which might not be present at the other computer that tries to run this.