简体   繁体   中英

What's the default location for Zeppelin notebooks in the Windows file system?

On a fresh Win10 machine with fresh docker, the following command instantiates Zeppelin:

docker run -p 8080:8080 --rm --name zeppelin apache/zeppelin:0.8.1

... allowing me to create a new notebook using the GUI at http://localhost:8080/#/

在此处输入图片说明

... but where are these notebooks stored? What's the default path to their directory so that I can git init and get to work? With Jupyter there is a 'tree' showing clearly the location/path of all notebooks; I don't see one for Zep and an hour's Googling has not been informative.

The GUI's 'Notebook Repos' button doesn't seem to help: 在此处输入图片说明

With the help of this answer I've been able to view the specific .json file representing my notebook. This answers the Q of where zeppelin notebooks exist in Docker images; leaving unanswered the question of where they exist in the Windows filesystem when NOT using Docker.

If using Docker (as recommended by the Zeppelin docs ) this is the recipe for finding a notebook file:

# first steps are taken in Powershell
docker ps # displays an image id for use in next line
docker commit <image_id_here> mysnapshot 
docker run -t -i mysnapshot  /bin/bash

# now in bash inside the Docker image
root@91f4bf850583:/zeppelin# ll notebook/2E6D1WBGT/note.json

... so (if using Docker) the best way to version-control a notebook is by using Docker versioning. This is quite different to Jupyter's approach where one can run individual .ipynb notebooks locally and version-control each of them. Having answered my own question I feel greatly more informed about Docker and the differences between Jupyter vs Zeppelin. Very curious to know if anyone can solve the original question of where notebooks are stored if running in Windows WITHOUT Docker 🙏

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM