Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. export BLACK_LIST_URIS="https://raw.githubusercontent.com/datalayer-jupyterlab/jupyterlab-listings-example/master/blockedExtensions_simple.json"
  2. # export BLACK_LIST_URIS=""
  3. # export WHITE_LIST_URIS="https://raw.githubusercontent.com/datalayer-jupyterlab/jupyterlab-listings-example/master/allowedExtensions_only_jlab.json"
  4. export WHITE_LIST_URIS=""
  5. export LISTINGS_REFRESH_SECONDS=120
  6. export LISTINGS_REQUEST_OPTS="{'timeout': 10}"
  7. listings-uris:
  8. @exec echo Using blockedExtensions URIs: ${BLACK_LIST_URIS}
  9. @exec echo Using allowedExtensions URIs: ${WHITE_LIST_URIS}
  10. @exec echo Refreshing lists every ${LISTINGS_REFRESH_SECONDS} seconds
  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.black_extensions_uris=${BLACK_LIST_URIS} \
  17. --LabServerApp.white_extensions_uris=${WHITE_LIST_URIS} \
  18. --LabServerApp.listings_refresh_seconds=${LISTINGS_REFRESH_SECONDS} \
  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.black_extensions_uris=${BLACK_LIST_URIS} \
  26. --LabServerApp.white_extensions_uris=${WHITE_LIST_URIS} \
  27. --LabServerApp.listings_refresh_seconds=${LISTINGS_REFRESH_SECONDS} \
  28. --LabServerApp.listings_request_options=${LISTINGS_REQUEST_OPTS}