An elastic search site to help you find snippets of code in your databricks notebooks.
An elastic search website built to find code snippets in your databricks instance.
Docker must be installed
-
Clone the repo
git clone https://github.com/gardnmi/databricks_snippets
-
Create a
.env
file with the below enviromental variables and place it at the top level of the project.DATABRICKS_USERNAME = <user_name> # i.e. my.email@company_name.com DATABRICKS_PASSWORD = <password> # i.e. ILoveDogs1 DATABRICKS_URL = https://<databricks-instance>.com # i.e. https://cust-success.cloud.databricks.com DATABRICKS_TOKEN = <token> # https://docs.databricks.com/dev-tools/api/latest/authentication.html DATABRICKS_OID = 5468435218588646 # found in url .databricks.com/?o=5468435218588646
The file should be saved directly below the root directory
├── databricks_snippets │ ├── .env │ └── app.py │ └── ..
-
Navigate to the project in your shell
cd databricks_snippets
-
Run the docker command in your shell
docker-compose up
-
Open up your browser and navigate to:
http://localhost:5000/
-
Before searching you will need to import Notebooks from your Workspace or Repo.
/Users/mike.gardner@kytheralabs.com
or
/Repos/mike.gardner@kytheralabs.com
The app uses the workspace api to list the desired notebooks and scrape the command b 5BC7 locks.
Distributed under the MIT License. See LICENSE.txt
for more information.