Code Monkey home page Code Monkey logo

md_to_ipynb's Introduction

md_to_ipynb

Converts markdown files into Jupyter Notebooks.

md_to_ipynb takes in a markdown file and converts it into a Jupyter Notebook. If the output file is not specified the name of the markdown file will be used with a .ipynb extension.

Usage:

python md_to_ipynb.py (-o -h) <markdown file> <file to output>

Arguments:

  • markdown file : the file to be converted
  • output file : (optional) name of converted file
  • -h help
  • -o attempts to open the converted file after conversion (using xdg-open)

Hints:

I suggest placing the script in '~/bin/' then in a terminal run:

echo "alias md_to_ipynb='python ~/bin/md_to_ipynb.py'" >> ~/.bash_profile
source ~/.bash_profile

You can then run it from the terminal in any folder by simply calling md_to_python

In order for the -o flag to work, your os needs to know how to directly open .ipynb files. For this purpose I reccomend installing nbopen and following the instructions in the readme to integrate with your file manager.

md_to_ipynb's People

Contributors

darrelbelvin avatar

Stargazers

Bryan Lim avatar WuMingwen avatar

Watchers

James Cloos avatar  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.