GithubHelp home page GithubHelp logo

orionisbio / notebooktoall Goto Github PK

View Code? Open in Web Editor NEW

This project forked from notebooktoall/notebooktoall

0.0 1.0 0.0 332 KB

The coolest way to turn a Jupyter Notebook into sharable stuff.

License: Other

Makefile 7.75% Python 21.01% Jupyter Notebook 71.24%

notebooktoall's Introduction

Build Status latest wheel Coverage Status Documentation Status Updates license versions

NotebookToAll

The coolest way to turn a Jupyter Notebook into sharable files.

Turn your Jupyter Notebook into a .py executable file and an .html file with a one-line command. You can create both or either file type at the same time! Under the hood, this package uses Jupyter nbconvert.

nbconvert is great for command line transformations, but it takes a bit of work to use in a program. NotebookToAll to the rescue!

Quick Start

Install

Install from PyPI.

pip install notebooktoall

Use

from notebooktoall.transform import transform_notebook

transform_notebook(ipynb_file="my_jupyter_notebook.ipynb", export_list=["html", "py"])

Run your code and an .html file and an executable .py file will appear in your current working directory. Use and share!

Ensure your Jupyter notebook doesn't have magic commands in it if you want to create an executable .py script.

You can also pass the URL of a Jupyter notebook to transform_notebook().

See the full docs at ReadTheDocs.

notebooktoall's People

Contributors

discdiver avatar pyup-bot avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.