Skip to content

geoedf/geoedf-publish-wizard

Repository files navigation

geoedf-publication-wizard

GeoEDF Publication Wizard is a Jupyter Notebook application designed to assist users in preparing and submitting publications. This application allows users to select files, extract metadata, review publication information, and submit the publication through the user interface.

Features

  1. Publish to the Portal:

    1. Select file(s) from current Jupyter Notebook
    2. Extract basic information like user's email, user's JUPYTERHUB_API_TOKEN from Jupyter environment variables
    3. Copy file(s) from original directory to staging area
    4. Publish file(s) using the GeoEDF portal's API.
    5. (The file(s) will be copied to persistent area by the next steps.)
  2. Track Publishing Tasks:

    1. Track the status of your previous publications directly from the interface of the app.
    2. Jump to the resource landing page of a publication in the table

Components

  1. controller.py: Contains the application logic to handle user interactions and manage the application flow.
  2. view.py: Manages the user interface components, adjusting the tabs/screens, style and layout
  3. model.py: Defines the data structure and methods to manage the properties of a publication.
  4. utils.py: Provides utility functions to interact with external resources and services, like copying directories and sending publication requests through the portal's API.
  5. notebook.ipynb: The Jupyter Notebook where the application is executed, which initializes and starts the application.

Run the app

Debugging and Testing

  1. conda env create --file environment.yml
  2. conda activate nbtmpl
  3. (If test locally, specify a valid local base_dir for nb/view.py:236)
  4. jupyter-lab
  5. Run the notebook notebook.ipynb in Jupyter Lab by opening the "Run" menu and selecting "Restart Kernel and Run All Cells..". Then press the the "Restart" button that appears. This will allow you to view any exceptions and errors.

Voila

  1. conda activate nbtmpl
  2. voila notebook.ipynb. A browser window shoudd open and run the app. If the app doesn't run enter URL "http://localhost:8866/".

Acknowledgments

Many thanks to Rob Campbell and I Luk Kim for their help and contributions to this project!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published