Skip to content

Instantly share code, notes, and snippets.

@winding-lines
Last active November 24, 2018 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save winding-lines/3fd2d915050c90fb88418cefa79df57d to your computer and use it in GitHub Desktop.
Save winding-lines/3fd2d915050c90fb88418cefa79df57d to your computer and use it in GitHub Desktop.
Various Jupyter related scripts

Basic diagnostics

Start New Python notebook and try running 1+1. Then start Julia notebook with the same.

If the javascript console has errors around downloading js files you can diagnose WebIO problems - from stackoverflow

import os.path
from jupyter_core.paths import jupyter_path

def find_extension(ext_path):
    for base in jupyter_path():
        curr_path = os.path.join(base, 'nbextensions', ext_path)
        if os.path.exists(curr_path):
            print('found extension at {!r}'.format(curr_path))

find_extension('config/main.js')

For the default Julia installation use ~/.julia/conda/3/bin/python3

Projects

If you are running inside a Julia project you can activate it in order to get all the dependencies

import Pkg; Pkg.activate(".")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment