r/IPython • • Nov 16 '13

Blogging with IPython

Thumbnail
blog.fperez.org
9 Upvotes

r/IPython • • Nov 13 '13

An ambitious experiment in Data Science takes off

Thumbnail
nbviewer.ipython.org
9 Upvotes

r/IPython • • Oct 31 '13

I want to contribute straightforward "Save to PDF" functionality

9 Upvotes

Thanks to the Notebook, every week doing my various assignments for several classes is a pleasure.

Actually getting the assignment out to PDF is a nightmare, especially with the newer versions of IPython. It used to be the case I could just "Preview HTML", then play around with whitespace to ensure figures don't get cut in half, and use "save as PDF" straight from the browser to get a deliverable.

Now it's a nightmare of converting to tex, debugging (where should I put all of the \newcommands?) and occasionally giving up and screenshotting the entire thing.

Where can I get started? What are the current best practices, and where are they documented?


r/IPython • • Oct 13 '13

Cross Validation: The Right and Wrong Way (New on Harvard's cs109 github page)

Thumbnail nbviewer.ipython.org
9 Upvotes

r/IPython • • Sep 05 '13

Leiden University Medical Center IPython Programming Course

Thumbnail
github.com
9 Upvotes

r/IPython • • Aug 17 '13

Mining the Social Web (2nd Edition) is now running IPython 1.0

9 Upvotes

r/IPython • • Aug 14 '13

How to Data (Science): Mapping SF Health Inspection Scores

Thumbnail
nbviewer.ipython.org
9 Upvotes

r/IPython • • Jul 20 '13

IPython 1.0 Alpha is Available on Github

Thumbnail
github.com
9 Upvotes

r/IPython • • Jun 26 '13

IPython quick reference

Thumbnail damontallen.github.io
9 Upvotes

r/IPython • • Jun 25 '13

The Magic Triangle

Thumbnail nbviewer.ipython.org
9 Upvotes

r/IPython • • Jun 20 '13

Python Descriptors Demystified (xpost from /r/programming)

Thumbnail nbviewer.ipython.org
9 Upvotes

r/IPython • • May 22 '13

BrowserCast: use the IPython Notebook to create screencast-like presentations

Thumbnail
github.com
9 Upvotes

r/IPython • • May 08 '13

GrowCut and Numba notebook

Thumbnail wakari.io
9 Upvotes

r/IPython • • May 01 '13

Be sure to check out the videos on the official IPython site.

9 Upvotes

The Official Videos are mostly from PyCons but there is an introduction video to the IPython Notebook as well as links ranging from how to set it up to demonstrations of parallel computing.


r/IPython • • Apr 29 '13

Reddit IPython opened April 29, 2013!

9 Upvotes

IPython is officially opened for content on April 29, 2013. May it live long and be an excellent resource for IPython users.

(Posted to draw attention the age of the sub-reddit.)


r/IPython • • Jul 11 '26

JupyterLite 0.8 is released! 🎉

Thumbnail
blog.jupyter.org
8 Upvotes

r/IPython • • Oct 03 '24

ryp: R inside Python

8 Upvotes

Excited to release ryp, a Python package for running R code inside Python! ryp makes it a breeze to use R packages in your Python projects, and includes out-of-the-box support for inline plotting in Jupyter notebooks.

https://github.com/Wainberg/ryp


r/IPython • • Sep 05 '24

nb2dash: Convert Jupyter notebooks to interactive dashboards with WASM

8 Upvotes

Hey r/ipython! Today, I'm lauching nb2dash, a tool to convert Jupyter notebooks into dashboards, and I'd love to get your feedback.

https://nb2dash.ploomberapp.io

You can see a sample dashboard here: https://nb2dash.ploomberapp.io/notebook/bb8086c0

What it does

  • Upload your Jupyter notebook (.ipynb file)

  • Get back a link to an interactive dashboard version of your notebook

Target Audience

Data practitioners who want to easily share an interactive analysis, machine learning model or any other interactive app.

Key features

  • Free to use: No sign-up required

  • Easy: Just drag and drop your notebook file

  • Quick: Processing usually takes 1-2 minutes

  • Shareable: Get a link you can send to anyone

Tech stack

  • Flask for the web app (receive uploads and process notebook)

  • NGINX for rendering processed notebooks

  • Voici for converting notebooks into standalone WASM pages

  • Redis and rq for task queueing

Comparison

When people want to share a notebook, they often convert it into HTML or PDF. However, this is hinders interactivity. Alternatively, you might use Voila to deploy it as a web app but that requires paying to a hosting provider. Voici uses WASM, meaning your notebook is a static site and all compute happens locally, reducing cost by a huge margin. Note that WASM and Voici are still early technologies and there are packages that won't work.

I'd really appreciate it if you could try it out and let me know what you think. Any feedback, feature requests, or bug reports are welcome!

(Note: This is a side project, so please be patient if there are any hiccups. I'm actively working on improvements!)


r/IPython • • Aug 29 '24

Created CLI that writes your semantic commit messages in git and more.

8 Upvotes

I've created CLI, a tool that generates semantic commit messages in Git

Here's a breakdown:

What My Project Does Penify CLI is a command-line tool that:

  1. Automatically generates semantic commit messages based on your staged changes.

  2. Generates documentation for specified files or folders.

  3. Hooks: If you wish to automate documentation generation

Key features:

  • penify-cli commit: Commits code with an auto-generated semantic message for staged files.

  • penify-cli doc-gen: Generates documentation for specified files/folders.

Installation: pip install penify-cli

Target Audience Penify CLI is aimed at developers who want to:

  • Maintain consistent, meaningful commit messages without the mental overhead.

  • Quickly generate documentation for their codebase. It's suitable for both personal projects and professional development environments where consistent commit practices are valued.

Comparison Github-Copilot, aicommit:

  • Penify CLI generates semantic commit messages automatically, reducing manual input. None does.

  • It integrates documentation generation, combining two common developer tasks in one tool.

Note: Currently requires signup at Penify (we're working on Ollama integration for local use).

Check it out:

I'd love to hear your thoughts and feedback!


r/IPython • • Dec 20 '21

The time and place for Jupyter notebooks in Data Science projects

Thumbnail
medium.com
8 Upvotes

r/IPython • • May 10 '21

Is it possible to create a slide in jupyter that has two columns.

8 Upvotes

I am trying to make slides using jupyter because I want to show an interactive plot. The left side of the slide has bullet points describing the plot and the right side is the interactive plot. I could make figure in matplotlib with two subplots. One with bullet points and the other one with the interactive plot. But I am trying to find an easier solution which will allow me to use markdown on the left side of the slide and python code on the right side of the slide.


r/IPython • • Mar 14 '21

Python Tutorial - Projects Made Easy: Part #4 CLI & Publishing to PyPi

Thumbnail
youtu.be
8 Upvotes

r/IPython • • Jul 09 '20

Automatically generating DAGs from Python/SQL scripts and Jupyter notebooks

8 Upvotes

Hi everyone!

Over the last few months, we've been working on a project to ease data pipeline development. Thanks to feedback from users, we've made huge user experience improvements.

To build a pipeline, you only need to annotate Python/SQL scripts to state dependencies (other scripts) and outputs (where to save them). Using static analysis, Ploomber automatically generates a DAG and executes all your tasks. Python scripts are converted to notebooks so you can review results later.

Here's a short video

Repository: https://github.com/ploomber/ploomber

Please reach out (open an issue in the repository) if you'd be interested in being part of our testing group. We're actively helping teams to integrate our tool into their projects and gathering feedback for future releases.


r/IPython • • Dec 08 '19

%vault magic as a zip-based, data frame oriented and encrypted %store alternative

8 Upvotes

Link: https://github.com/krassowski/data-vault

Online demo: https://mybinder.org/v2/gh/krassowski/data-vault/master?filepath=Example.ipynb

I am experimenting with a custom %vault magic to store and transfer data frames between notebooks. Would love to hear if this may be of any use to someone else (or maybe there are better ways of dealing with data transfer in Python).

Motivation:

I work with a variety of datasets which need cleaning, processing and integration. In my field, most of the tools are scripts which expect plain text files. I often clean data in one notebook, prepare two or three different versions of the dataframe and export it to use in a different file. In other words, I need to move tabular data around frequently.

The %store magic is a very simple pickle-based magic which works great for simple use cases (transfer data between notebooks). There are, however, limitations for real-world usage:

  1. It is easy to overwrite your work as there is no hierarchical organization - the objects are identified by the variable name alone (and each notebook may have a variable named data )

  2. If you change your class structure at some time in the future, you may no longer be able to unpickle the data you saved months ago - happened to me more than once, the recovery process is possible but annoying

  3. You do not have the register/log of what and when was stored, and you do not know which version of the object you are loading

  4. There is no built-in support for encryption

  5. If you modify your cell with %store command before it was committed to the version control system you have no trace of the change

Regarding (2), there are better picklers than the default one, however, those I know do not integrate as well with IPython, and do not solve the reproducibility nor organization issues (but they certainly help!).

In the past, I experimented with selective import from notebooks, and creating pipelines of notebooks with reproducibility checks and nice visualisations but the former is not feasible if you have computationally expensive steps in the notebooks that you are importing from, while the latter (even though allows to skip certain computationally expensive steps) was focused on detecting changes in notebooks, not in the intermediate files; moreover taking care of paths to the files (specifying input and output) was a laborious and error-prone job.

So here is an attempt to solve some of these issues, also bringing other potential benefits such as memory-optimizing the loaded DataFrames. The %vault magic solves the issues described above by:

  1. Putting the files in folders inside of the zip while using an interface inspired by the Python import system syntax

  2. Promoting (but not enforcing) the use of plain text files (tsv) for the data storage (rather than Python objects of which classes can be changed and lead to unpickling problems - but pickling is still possible)

  3. Providing a logging system (a .log file, the notebook metadata and short human-readable summary printed in the notebook), which include: the operation datetimes (start and end), checksum of the files (user-readable 8-char CRC32, and SHA256 in metadata in case CRC32 of collisions), operation type and more.

  4. Support for encryption of the files (not super secure, but enough to mitigate damage/give more time in case of accidental inclusion of anonymized files in your git repository)

  5. The metadata includes the full command line that has been run for your reference.