Add tool and default ipynb file

This commit is contained in:
Anup Kumar
2021-02-05 15:52:41 +01:00
parent a02e13594c
commit 3ab46acf40
2 changed files with 52 additions and 3 deletions
@@ -0,0 +1,49 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "uniform-equivalent",
"metadata": {},
"source": [
"# Welcome to the interactive Galaxy IPython Notebook for Machine Learning."
]
},
{
"cell_type": "markdown",
"id": "attended-evolution",
"metadata": {},
"source": [
"More help and informations can be found on the project [website](https://github.com/anuprulez/ml-jupyter-notebook)."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "excited-composer",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
@@ -1,6 +1,6 @@
<tool id="interactive_ml_tool_jupyter_notebook" tool_type="interactive" name="Interactive Machine Learning Jupyter Notebook" version="0.1">
<requirements>
<container type="docker">docker.io/anupkumar/sample-docker-ml-jupyter</container>
<container type="docker">docker.io/anupkumar/sample-docker-ml-jupyter:latest</container>
</requirements>
<entry_points>
<entry_point name="Jupyter Interactive Tool" requires_domain="True">
@@ -30,8 +30,8 @@
export PATH=/home/jovyan/.local/bin:\$PATH &&
#if $mode.mode_select == 'scratch':
## copy default notebook
cp '$__tool_directory__/default_notebook.ipynb' ./ipython_galaxy_notebook.ipynb &&
## copy default notebook ml
cp '$__tool_directory__/default_notebook_ml.ipynb' ./ipython_galaxy_notebook.ipynb &&
jupyter trust ./ipython_galaxy_notebook.ipynb &&
jupyter lab --allow-root --no-browser --NotebookApp.shutdown_button=True &&
cp ./ipython_galaxy_notebook.ipynb '$jupyter_notebook'