在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ebanner/pynt开源软件地址:https://github.com/ebanner/pynt开源编程语言:Python 65.0%开源软件介绍:PYNT (PYthon iNTeractive)Get your code into a jupyter notebook. Anytime. Anywhere. Check out my SciPy 2018 talk for the motivation and a feature tour of pynt. FeaturesGenerate jupyter notebooks on the flyNo more copy and pasting code into jupyter notebooks. Each line of code gets its own cell. Attach a jupyter notebook to a running processRun a command which hits the code in the notebook. Restart the notebook kernel to attach to that process. Syntax transformationsUnroll the first pass of loops for increased interactivity. Scroll the resulting jupyter notebook with the code bufferNever forget which cell a code line corresponds to. Quick StartDisclaimer: pynt is in beta. Make sure to back-up your code before using it! Install the codebook module with pip.
Then install pynt in emacs through MELPA.
The next time you visit a python file pynt mode will be active. What is pynt?pynt is an emacs minor mode for getting source code into jupyter notebooks so you can hack on it there. If you have access to source code and a command to call it with then you can get your code into a jupyter notebook. However, just pasting your code into one big jupyter notebook cell is not particularly useful. pynt also
Using pyntIt is highly recommended that you familiarize yourself with Emacs IPython Notebook (EIN) first as pynt, at its core, is a tool to make working with EIN easier. Once you have opened a python file and pynt mode is active, cursor over to the region of code you would like to dump into a notebook and hit If you want to attach a jupyter notebook to a running process, then run a command which hits the jupyter notebook code. Restart the jupyter notebook kernel with How pynt workspynt uses a custom kernel manager for attaching to jupyter notebook kernels started via third-party processes. When pynt generates a jupyter notebook from a code region that code region is replaced with a IPython kernel breakpoint so that subsequent commands that hit it will start a jupyter kernel for the notebook to attach to. See here for more information. pynt also makes heavy use of the Related Projectspynt is a tool that truly stands on the shoulders of giants. Here are some projects where if they had not existed, then pynt would not have been possible. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论