-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored igv-jupyter to wrap igv-notebook; work in progress
- Loading branch information
Showing
24 changed files
with
57 additions
and
908 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,27 @@ | ||
# Dockerfile for running igv-jupyter from a pip install | ||
|
||
# Pull the latest known good scipy notebook image from the official Jupyter stacks | ||
FROM jupyter/scipy-notebook:2021-08-16 | ||
FROM jupyter/scipy-notebook:2022-02-17 | ||
|
||
MAINTAINER Thorin Tabor <[email protected]> | ||
EXPOSE 8888 | ||
|
||
############################################# | ||
## ROOT ## | ||
## Install npm ## | ||
############################################# | ||
|
||
USER root | ||
|
||
RUN apt-get update && apt-get install -y npm | ||
|
||
############################################# | ||
## $NB_USER ## | ||
## Install python libraries ## | ||
############################################# | ||
|
||
USER $NB_USER | ||
|
||
RUN conda install -c conda-forge jupyterlab=3.1 | ||
|
||
############################################# | ||
## $NB_USER ## | ||
## Install nbtools ## | ||
## Install dependencies ## | ||
############################################# | ||
|
||
RUN pip install nbtools==21.9.0b1 | ||
RUN pip install nbtools==22.3.0b2 igv-notebook | ||
|
||
############################################# | ||
## $NB_USER ## | ||
## Install nbtools igv-jupyter ## | ||
############################################# | ||
|
||
RUN pip install igv-jupyter && jupyter lab build | ||
RUN pip install igv-jupyter | ||
|
||
# RUN git clone https://github.com/g2nb/igv-jupyter.git | ||
# RUN cd igv-jupyter && pip install -e . | ||
|
||
############################################# | ||
## $NB_USER ## | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,6 @@ | ||
from .browser import Browser | ||
from .nbextension import _jupyter_nbextension_paths | ||
from .labextension import _jupyter_labextension_paths | ||
from .navbar import show_navbar | ||
from .tool import igv_tool | ||
from .version import __version__ | ||
from igv_notebook import Browser, init | ||
|
||
|
||
def _jupyter_server_extension_paths(): | ||
return [{ | ||
"module": "igv" | ||
}] | ||
|
||
|
||
def load_jupyter_server_extension(nbapp): | ||
nbapp.log.info("igv enabled!") | ||
__version__ = '2.0.0' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import os | ||
from IPython.display import HTML, Javascript, display | ||
|
||
|
||
def show_navbar(): | ||
# Display the base HTML container for the menu | ||
display(HTML('<div class="igv-navbar"></div>')) | ||
|
||
# Import the menu styles | ||
menu_path = os.path.join(os.path.dirname(__file__), 'static/menu.css') | ||
menu_file = open(menu_path, 'r') | ||
menu_css = menu_file.read() | ||
display(HTML(f'<style>{menu_css}</style>')) | ||
|
||
# Build the menu with Javascript | ||
menu_path = os.path.join(os.path.dirname(__file__), 'static/menu.js') | ||
menu_file = open(menu_path, 'r') | ||
menu_js = menu_file.read() | ||
display(Javascript(menu_js)) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.