Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions nwbwidgets/panel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import concurrent.futures
import os
import warnings
from pathlib import Path

Expand Down Expand Up @@ -292,6 +293,9 @@ def process_dandiset(self, dandiset):

def get_all_dandisets_metadata(self):
with DandiAPIClient() as client:
api_key = os.environ.get("DANDI_API_KEY", None)
if api_key:
client.dandi_authenticate()
all_metadata = []
dandisets = list(client.get_dandisets())
total_dandisets = len(dandisets)
Expand Down