All Projects → kiwi0fruit → ipynb-py-convert

kiwi0fruit / ipynb-py-convert

Licence: MIT license
Convert .py files runnable in VSCode or Atom/Hydrogen to Jupyter .ipynb notebooks and vice versa

Projects that are alternatives of or similar to ipynb-py-convert

Blogger Cli
A cli tool to convert and manage jupyter notebook blogs. Proudly host your notebooks even as a static site.
Stars: ✭ 404 (+963.16%)
Mutual labels:  converter, jupyter, ipynb
sublime-atomizr
Convert Sublime Text completions into Atom (or Visual Studio Code) snippets, and vice versa.
Stars: ✭ 12 (-68.42%)
Mutual labels:  converter, atom-editor
medium-to-markdown
Converts Medium posts to markdown.
Stars: ✭ 68 (+78.95%)
Mutual labels:  converter
video2gif
A batch script for convert video to GIF files by FFmpeg.exe on Windows
Stars: ✭ 48 (+26.32%)
Mutual labels:  converter
leafmap
A Python package for interactive mapping and geospatial analysis with minimal coding in a Jupyter environment
Stars: ✭ 1,299 (+3318.42%)
Mutual labels:  jupyter
to-ico
Convert PNG to ICO in memory
Stars: ✭ 115 (+202.63%)
Mutual labels:  converter
mdtable2csv
convert tables in .md to .csv
Stars: ✭ 91 (+139.47%)
Mutual labels:  converter
gluon2pytorch
Gluon to PyTorch deep neural network model converter
Stars: ✭ 72 (+89.47%)
Mutual labels:  converter
multi-task-learning
Multi-task learning smile detection, age and gender classification on GENKI4k, IMDB-Wiki dataset.
Stars: ✭ 154 (+305.26%)
Mutual labels:  ipynb
mercury
Convert Python notebook to web app and share with non-technical users
Stars: ✭ 1,894 (+4884.21%)
Mutual labels:  jupyter
ical2json
A simple node package to convert ical data to json
Stars: ✭ 46 (+21.05%)
Mutual labels:  converter
iqsharp
Microsoft's IQ# Server.
Stars: ✭ 112 (+194.74%)
Mutual labels:  jupyter
bot-whatsapp
Unmaintained - Multipurpose WhatsApp Bot 🤖 using open-wa/wa-automate-nodejs library! ✨
Stars: ✭ 78 (+105.26%)
Mutual labels:  converter
emr-bootstrap-spark
AWS bootstrap scripts for Mozilla's flavoured Spark setup.
Stars: ✭ 49 (+28.95%)
Mutual labels:  jupyter
atom-linter-xo
Linter for XO
Stars: ✭ 90 (+136.84%)
Mutual labels:  atom-editor
color-converter
Command line tool for converting colors from RGB to HEX and vice versa.
Stars: ✭ 17 (-55.26%)
Mutual labels:  converter
ijava-binder
An IJava binder base for trying the Java Jupyter kernel on https://mybinder.org/
Stars: ✭ 28 (-26.32%)
Mutual labels:  jupyter
observable-jupyter
Embed visualizations and code from Observable notebooks in Jupyter
Stars: ✭ 27 (-28.95%)
Mutual labels:  jupyter
cyan
Cyan Color Converter
Stars: ✭ 68 (+78.95%)
Mutual labels:  converter
autocomplete-semantic-web
Semantic Web Autocomplete for Atom Editor
Stars: ✭ 45 (+18.42%)
Mutual labels:  atom-editor

ipynb-py-convert

Atom/Hydrogen or VSCode/Python allows creating a python files split into cells with # %% separators with the ability to run cells via backend Jupyter session and interactively show results back.

More examples: Jupyter Python VSCode examples, Atom/Hydrogen Getting Started.

ipynb-py-convert python module converts files: .ipynb to .py and .py to .ipynb.

ipynb-py-convert is a fork of the vscode-ipynb-py-converter.

Install

conda install -c defaults -c conda-forge ipynb-py-convert

or

pip install ipynb-py-convert

Troubleshooting

  • If encoding problems on Windows try using python>=3.7, setting set PYTHONUTF8=1 in Windows console and use ipynb-py-convert for UTF-8 files only. If using Git-Bash on Windows setting:
export LANG=C.UTF-8
export PYTHONIOENCODING=utf-8
export PYTHONUTF8=1

should be enough. Also try setting default Bash settings to UTF-8: [Options] - [Text] - [Locale / Character set] - [C / UTF-8]. It might affect all Bash runs so there would be no need to setting encoding every time.

Example

ipynb-py-convert examples/plot.py examples/plot.ipynb

or

ipynb-py-convert examples/plot.ipynb examples/plot.py

VSCode

Markdown cells are converted to python multiline strings '''. Code cells are left as is. # %% is used by vscode as the cell marker on which 'Run Cell' action is available.

Jupyter ipynb notebook

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].