mapbox / mapbox/mapboxgl-jupyter

Is there a way to hide the "token = os.getenv('MAPBOX_ACCESS_TOKEN')"

Open
#175 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
681
Forks
137
PR merge metrics
No merged PRs in 30d

Description

In all of the example notebooks you get the mapbox token from the environment like so

"token = os.getenv('MAPBOX_ACCESS_TOKEN')"

If we used a hosted Jupyter notebook environment we certainly dont want to pass our Mapbox token around to users. How do make the token part of the install/Jupyter platform not part of the notebook runtime?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the example notebooks that read MAPBOX_ACCESS_TOKEN and determine how hosted Jupyter environments are configured. Define the required install- or platform-level token handling before changing the examples. Done means users can run the hosted notebooks without receiving or passing the Mapbox token through notebook runtime code.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.