Skip to content
Snippets Groups Projects
Commit 389be67f authored by Swen Vermeul's avatar Swen Vermeul
Browse files

Merge branch 'release/0.2.3'

parents 7bfa866a fb680aaa
No related branches found
No related tags found
No related merge requests found
...@@ -50,6 +50,18 @@ $ jupyter --paths ...@@ -50,6 +50,18 @@ $ jupyter --paths
``` ```
The `config` section from the output lists the directories where your `openbis-connections.yaml` file should be placed. The `config` section from the output lists the directories where your `openbis-connections.yaml` file should be placed.
## install Jupyter extension manually
In most cases, a simple `pip install --upgrade jupyter-openbis-extension` will do. However, in some cases you need to issue the following commands to get the extension running correctly:
```
$ jupyter serverextension enable --py jupyter-openbis-extension
$ jupyter nbextension install --py jupyter-openbis-extension --user
$ jupyter nbextension enable --py jupyter-openbis-extension --user
```
If you want to install the extension globally, use `--system` instead of `--user`.
## Launching Jupyter notebook ## Launching Jupyter notebook
Now you are ready to launch Jupyter notebook: Now you are ready to launch Jupyter notebook:
...@@ -122,4 +134,4 @@ The `-e` is a shortcut for `--editable`. This means, it will only establish a li ...@@ -122,4 +134,4 @@ The `-e` is a shortcut for `--editable`. This means, it will only establish a li
If you make modifications on the UI (the Javascript files) you only need to reload the page in order the see the effect. If you make modifications on the UI (the Javascript files) you only need to reload the page in order the see the effect.
How to extend Jupyter Notebooks is described [here](https://jupyter-notebook.readthedocs.io/en/stable/extending/index.html). To distribute Jupyter Extensions, read this [documentation](https://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Distributing%20Jupyter%20Extensions%20as%20Python%20Packages.html#) carefully. How to extend Jupyter Notebooks is described [here](https://jupyter-notebook.readthedocs.io/en/stable/extending/index.html). To distribute Jupyter Extensions, read this [documentation](https://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Distributing%20Jupyter%20Extensions%20as%20Python%20Packages.html#) carefully.
\ No newline at end of file
...@@ -69,6 +69,23 @@ These directories can be found by invoking ...@@ -69,6 +69,23 @@ These directories can be found by invoking
The ``config`` section from the output lists the directories where your The ``config`` section from the output lists the directories where your
``openbis-connections.yaml`` file should be placed. ``openbis-connections.yaml`` file should be placed.
install Jupyter extension manually
----------------------------------
In most cases, a simple
``pip install --upgrade jupyter-openbis-extension`` will do. However, in
some cases you need to issue the following commands to get the extension
running correctly:
::
$ jupyter serverextension enable --py jupyter-openbis-extension
$ jupyter nbextension install --py jupyter-openbis-extension --user
$ jupyter nbextension enable --py jupyter-openbis-extension --user
If you want to install the extension globally, use ``--system`` instead
of ``--user``.
Launching Jupyter notebook Launching Jupyter notebook
-------------------------- --------------------------
...@@ -131,9 +148,15 @@ steps: ...@@ -131,9 +148,15 @@ steps:
After the setup is complete, you'll have After the setup is complete, you'll have
- Jupyter with openBIS extension running at http://localhost:8888. - Jupyter with openBIS extension running at http://localhost:8888.
- openBIS running at http://localhost:8122, with credentials - openBIS running at https://localhost:8122/openbis/, with credentials
admin/password. admin/password.
- Experiment /DEFAULT/DEFAULT with a lot of datasets for testing. - Object /DEFAULT/DEFAULT with a lot of datasets for testing.
Hint: Jupyter creates no log file. Everything is printed onto the
console. In order to see this output do the following: 1. vagrant ssh 2.
screen -r
You can escape from the screen by typing ^A followed by ^D.
clone repository and install extension for development clone repository and install extension for development
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
name = 'jupyter-openbis-extension.server' name = 'jupyter-openbis-extension.server'
__author__ = 'Swen Vermeul' __author__ = 'Swen Vermeul'
__email__ = 'swen@ethz.ch' __email__ = 'swen@ethz.ch'
__version__ = '0.2.2' __version__ = '0.2.3'
def _jupyter_server_extension_paths(): def _jupyter_server_extension_paths():
return [{ return [{
......
...@@ -11,7 +11,7 @@ with open("README.md", "r", encoding="utf-8") as fh: ...@@ -11,7 +11,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setup( setup(
name='jupyter-openbis-extension', name='jupyter-openbis-extension',
version= '0.2.2', version= '0.2.3',
author='Swen Vermeul | ID SIS | ETH Zürich', author='Swen Vermeul | ID SIS | ETH Zürich',
author_email='swen@ethz.ch', author_email='swen@ethz.ch',
description='Extension for Jupyter notebooks to connect to openBIS and download/upload datasets, inluding the notebook itself', description='Extension for Jupyter notebooks to connect to openBIS and download/upload datasets, inluding the notebook itself',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment