Setting Up a .env File (Optional)
This step is optional but recommended for convenience.
A .env
file can help you manage environment-specific variables more efficiently, without hardcoding sensitive information into your project files. This setup is particularly useful for differentiating between development and production environments. Here's how you can set up a .env
file in your project's root folder:
Navigate to the root directory of your project. In JupyterLab, this is typically the starting point.
Create a file named
.env
in this directory.Open the
.env
file with your preferred text editor.Add your environment-specific variables in the format
KEY=VALUE
.
Example entries for your .env
file might include:
FINTER_API_KEY='your_finter_api_key' # Necessary for using Finter services.
GITHUB_REPO_OWNER='your_github_username' # For syncing your modeling code, not mandatory.
GITHUB_REPO_NAME='your_repository_name' # Helps to manage your codebase, optional.
GITHUB_BRANCH_NAME='your_branch_name' # Specifies the branch to use, optional.
GITHUB_ACCESS_TOKEN='your_github_api_token' # Required for accessing your GitHub repo programmatically, optional.
Last updated
Was this helpful?