News for hackers. Stuff that matters.
Re:Python Textbook as a Jupyter Notebook by abdullahkhalids on Wednesday August 12, 2020 @02:55PM (#24135478)
I 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?

Re:Python Textbook as a Jupyter Notebook by d0mine on Wednesday August 12, 2020 @03:51PM (#24136074)
Re:Python Textbook as a Jupyter Notebook by abdullahkhalids on Wednesday August 12, 2020 @04:18PM (#24136387)
I 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.
Re:Python Textbook as a Jupyter Notebook by d0mine on Saturday August 22, 2020 @03:19PM (#24246529)
It is emacs, it is easy to eliminate the boiler-plate e.g., by using global/per file/per org sub tree defaults, templates.
Re:Python Textbook as a Jupyter Notebook by hannasanarion on Thursday August 13, 2020 @09:54AM (#24143334)
Jupyter markdown blocks can parse LaTeX math and image embeddings. Pretty sure that's out of the box.
Re:Python Textbook as a Jupyter Notebook by bobbylarrybobby on Wednesday August 12, 2020 @04:50PM (#24136805)
I 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).
Re:Python Textbook as a Jupyter Notebook by sanketsarang on Thursday August 13, 2020 @12:25AM (#24139927)
Do 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.
Re:Python Textbook as a Jupyter Notebook by akbo on Thursday August 13, 2020 @03:04AM (#24140712)
Have you tried remote development with VSCode? IT works really well! https://code.visualstudio.com/docs/remote/ssh
Re:Python Textbook as a Jupyter Notebook by sanketsarang on Thursday August 13, 2020 @03:22AM (#24140802)
I 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.
Re:Python Textbook as a Jupyter Notebook by jwilber on Thursday August 13, 2020 @03:18AM (#24140778)
+1. Once you get it up and running it works so seamlessly.
Re:Python Textbook as a Jupyter Notebook by larrybud on Thursday August 13, 2020 @10:14AM (#24143522)
Take a look at Visual Studio Codespaces: https://visualstudio.microsoft.com/services/visual-studio-co... Despite the name, it's hosted VSCode, not Visual Studio.
Re:Python Textbook as a Jupyter Notebook by sanketsarang on Wednesday August 12, 2020 @03:48PM (#24136038)
Have you tried to see if the shortcuts work on the Jupyter Labs version of the notebooks?
Re:Python Textbook as a Jupyter Notebook by abdullahkhalids on Wednesday August 12, 2020 @04:15PM (#24136349)
They 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.