notablemind / jupyter-nodejs

A node.js kernel for jupyter/ipython
http://nbviewer.ipython.org/gist/jaredly/404a36306fdee6a1737a
MIT License
682 stars 70 forks source link

Unexpected token export #59

Open Amertz08 opened 6 years ago

Amertz08 commented 6 years ago

I'm using the babel extension and running into the titled error still.

// In[1]:
%load_ext babel
// In[2]:
%%babel
import { get_base_url, test_successful_resp, test_required_param } from '../testlib';

Given testlib.js

const assert = require('assert');

export const get_base_url = (path) => {
    const base = process.env.DC_API_URL;

    assert.notEqual(base, undefined, 'DC_API_URL not found');
    return `${base}/beta/${path}`;
};
// more functions defined in the same manner

I would think the babel extension would resolve this but I guess I'm not understanding.