This lets you try out this extension on a local containerized setup of SWAN. This includes a preview of the integration with SWAN contents.
- Create a container from the Dockerfile
docker build . -t swanimage
docker create -t --name swancontainer -p 8888:8888 swanimage
- Start or stop the container
docker start swancontainer
docker stop swancontainer
- The logs of the container can be checked using
docker logs swancontainer
- The root shell of the container can be accessed using
docker exec -u root -it swancontainer /bin/bash
- By default, the application will run on port 8888
-
Prerequisites
-
Download extension
git clone https://github.com/techtocore/Jupyter-Package-Manager.git
cd Jupyter-Package-Manager/extension
- Build and Install Dependencies
yarn install
yarn run webpack
python -m pip install -e .
- Install and enable
nbextension
in Jupyter Namespace
jupyter nbextension install --py packagemanager --system --symlink
jupyter nbextension enable packagemanager --system --py
- Enable Jupyter Server Extension
jupyter serverextension enable --py --system packagemanager
- For the purpose of API testing and development, please allow cross-site requests by adding
c.NotebookApp.disable_check_xsrf = True
(in ~/.jupyter/jupyter_notebook_config.py)