Makefile 1.3 KB

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