5 ms·
Python Textbook as a Jupyter Notebook
- sanketsarang 6y agoI have prepared a few lessons on getting started with Python. It is basically a Python Textbook for those wanting to start learning Python for Data Science. In a unique twist, the textbook is a Jupyter Notebook in itself. Code and explanation all in one. You can directly run the code while you read the textbook, and master your Python skills. Currently includes Hello World, Language Semantics, Tuples and Lists. More lessons coming up.
- pc86 6y agoI just started an ML course, and while I've been a developer for about a decade I've never used Python professionally. This will be a great help!
- sanketsarang 6y agoAwesome. Great to know. This is really encouraging.
- abdullahkhalids 6y agoI like the concept of Jupyter Notebooks and I do use them extensively, but I can't use my emacs shortcuts which makes writing anything more than a few lines really annoying. Especially, writing Latex Math without Auctex (emacs package) is very tedious. What's the solution?
- sanketsarang 6y agoHave you tried to see if the shortcuts work on the Jupyter Labs version of the notebooks?
- abdullahkhalids 6y agoThey interfere with the browser shortcuts, like Ctrl-N. Besides, still no auctex or similar. I was literally thinking of making a custom chromium browser with my own shortcuts to solve this problem.
- d0mine 6y agoOrg Babel with emacs jupyter if desired. https://youtube.com/watch?v=dljNabciEGg https://youtube.com/watch?v=dljNabciEGg https://github.com/nnicandro/emacs-jupyter#org-mode-source-blocks https://github.com/nnicandro/emacs-jupyter#org-mode-source-b...
- abdullahkhalids 6y agoI have tried it. It works. But there is too much syntax surrounding code blocks that is annoying. And I need to enable inline Math display and inline image display to get a seamless interface.
- hannasanarion 6y agoJupyter markdown blocks can parse LaTeX math and image embeddings. Pretty sure that's out of the box.
- d0mine 6y agoIt is emacs, it is easy to eliminate the boiler-plate e.g., by using global/per file/per org sub tree defaults, templates.
- bobbylarrybobby 6y agoI usually go the other route: instead of trying to get Jupyter notebooks to behave like my favorite editor, I try to get my favorite editor to behave like a Jupyter notebook. In vscode, the python extension can convert back and forth between python files and Jupyter notes books, and can run python files like Jupyter notebooks (with cells).
- sanketsarang 6y agoDo you know of any service offering hosted VSCode? The problem happens when my data is too large for my computer. In such cases it is much easier to use hosted Jupyter than run Python code on a server.
- akbo 6y agoHave you tried remote development with VSCode? IT works really well! https://code.visualstudio.com/docs/remote/ssh https://code.visualstudio.com/docs/remote/ssh
- jwilber 6y ago+1. Once you get it up and running it works so seamlessly.
- sanketsarang 6y agoI did try this, but it kind of did not work well for me. Since it requires a continuous ssh connection, and my connection kept dropping, the experience was not great. But maybe that was my internet. Need to give it a second attempt.
- larrybud 6y agoTake a look at Visual Studio Codespaces: https://visualstudio.microsoft.com/services/visual-studio-codespaces/ https://visualstudio.microsoft.com/services/visual-studio-co... Despite the name, it's hosted VSCode, not Visual Studio.
- tmabraham 6y agoThe perfect example of a textbook as a collection of Jupyter notebooks may be the Deep Learning for Coders book: https://github.com/fastai/fastbook https://github.com/fastai/fastbook
- sanketsarang 6y agoI totally agree. It is time we build the same for everyone to learn Python programming as well.
- mkesper 6y ago@moderators: This should be a show HN.
- asicsp 6y agoSee also "Python Data Science Handbook" by Jake VanderPlas, which uses Jupyter notebooks too. [0] https://jakevdp.github.io/PythonDataScienceHandbook/ https://jakevdp.github.io/PythonDataScienceHandbook/
- sanketsarang 6y agoI really like this, but I find it too exhaustive. It is too much to read. Wanted to create something that is short and to the point for programmers of other languages to quickly learn basics of Python for Data Science.
- s1t5 6y agoHave you seen Whirlwind Tour of Python by the same author? - https://jakevdp.github.io/WhirlwindTourOfPython/ https://jakevdp.github.io/WhirlwindTourOfPython/ > A Whirlwind Tour of Python is a fast-paced introduction to essential features of the Python language, aimed at researchers and developers who are already familiar with programming in another language. The material is particularly designed for those who wish to use Python for data science and/or scientific programming
- villgax 6y agoJupyter Book seems to be a good fit for this.
- sanketsarang 6y agoYes I just saw. They launched it today itself. What a coincidence. If someone is familiar with it, please help migrate to Jupyter Book. Would appreciate a PR. Else will do it over the weekend.
- suyash 6y agowhat's the real difference between that vs Jupyter notebook vs Jupyter labs?
- sanketsarang 6y agoJupyter Labs is an extension to Jupyter Notebook. Functionally the same, but Labs offers a much better coding interface. In it's simplest form, Jupyter Labs feels like a proper IDE, while just Jupyter feels like a pretty notebook offering an interface worthy of reading, but not worthy enough to used as a full time coding environment.
- s1t5 6y agoIs the mention of data science in the readme an indicator of future work that you want to add? Because as far as I can see there's no data science anywhere in the project so far.
- sanketsarang 6y agoI agree. Adding it in