Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running jupyter ipynb with atom

I installed atom and jupyter package for atom from here. Now if I open old ipython notebooks from atom it does not display it as notebook. Here is what old piece of notebook looks like in atom,

{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "#importing all the libraries\n",
    "import numpy as np\n",
    "import pandas as pd\n",
    "import sys \n",
    "sys.path.append(\"/Users/myname/Documents/things")\n",
    "import quadedge as qd\n",
    "sys.path.append(\"/Users/myname/Documents/otherthings\")\n",
    "import latdevcode as latdev\n",
    "import cendevcode as latgen\n",
    "import matplotlib.pyplot as plt"
   ]
  },   

Am i missing something? How can I make the navigator directly open jupyter notebook in atom and properly?

like image 561
kada Avatar asked Oct 27 '16 09:10

kada


1 Answers

It's not even old notebooks. I just installed python (3.6.3) and jupyter (4.3.0), created a couple notebooks via the Jupyter notebook CLI (nteract), but when I tried to open them in atom, I also got a JSON version.

After a fair bit of research, what I learned is that Hydrogen is simply using jupyter to enable inline code execution in plain text files (e.g. .py and .R), it does not actually support .ipynb files, more importantly the maintainers have no plans or desire to support .ipynb.

references:
- https://github.com/nteract/hydrogen/issues/75
- https://github.com/nteract/hydrogen/issues/1154

like image 113
MetaSean Avatar answered Nov 03 '22 09:11

MetaSean