Makefile 1.2 KB

1234567891011121314151617181920212223242526272829
  1. export BLACK_LIST_URIS="https://raw.githubusercontent.com/datalayer-jupyterlab/jupyterlab-listings-example/master/blacklist_simple.json"
  2. export WHITE_LIST_URIS="https://raw.githubusercontent.com/datalayer-jupyterlab/jupyterlab-listings-example/master/whitelist_simple.json"
  3. export LISTINGS_REFRESH_MS=30000
  4. export LISTINGS_REQUEST_OPTS="{'timeout': 10}"
  5. listings-uris:
  6. @exec echo Using blacklist URIs: ${BLACK_LIST_URIS}
  7. @exec echo Using whitelist URIs: ${WHITE_LIST_URIS}
  8. @exec echo Refreshing lists every ${LISTINGS_REFRESH_MS} milliseconds
  9. @exec echo Using ${LISTINGS_REQUEST_OPTS} for the HTTP requests
  10. dev: listings-uris
  11. @exec python main.py \
  12. --dev \
  13. --no-browser \
  14. --LabServerApp.blacklist_uris=${BLACK_LIST_URIS} \
  15. --LabServerApp.whitelist_uris=${WHITE_LIST_URIS} \
  16. --LabServerApp.listings_refresh_ms=${LISTINGS_REFRESH_MS} \
  17. --LabServerApp.listings_request_options=${LISTINGS_REQUEST_OPTS}
  18. watch: listings-uris
  19. @exec python main.py \
  20. --dev \
  21. --no-browser \
  22. --watch \
  23. --LabServerApp.blacklist_uris=${BLACK_LIST_URIS} \
  24. --LabServerApp.whitelist_uris=${WHITE_LIST_URIS} \
  25. --LabServerApp.listings_refresh_ms=${LISTINGS_REFRESH_MS} \
  26. --LabServerApp.listings_request_options=${LISTINGS_REQUEST_OPTS}