TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Convert Python source code (.py) to Jupyter notebook (.ipynb) with p2j

2 pointsby raibosomeabout 6 years ago

1 comment

raibosomeabout 6 years ago
Say no more to copying code line-by-line to Jupyter notebook. This conversion just needs your code to be paragraphed, like how codes should be. Comments are converted to markdowns. Codes are converted to cell codes. It&#x27;s as easy as running pip install p2j and run p2j your_code.py<p>Pull requests are welcome!