question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to query for notebook name

See original GitHub issue

wandb --version && python --version && uname

  • Weights and Biases version: 0.9.2
  • Python version: 3.6.10 :: Anaconda, Inc.
  • Operating System: Linux

Description

According to https://docs.wandb.com/library/integrations/jupyter#notebook-name, you can get rid of the error message

Failed to query for notebook name, you can set it manually with the WANDB_NOTEBOOK_NAME environment variable

by setting

os.environ['WANDB_NOTEBOOK_NAME'] = 'some text here'

However, this did not work when I ran wandb.init() after import torch.

What I Did

Python 3.6.10 |Anaconda, Inc.| (default, May  8 2020, 02:54:21)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.13.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import wandb

In [2]: import os

In [3]: os.environ['WANDB_NOTEBOOK_NAME'] = 'some text here'

In [4]: wandb.init()
<IPython.core.display.HTML object>
Out[4]: W&B Run: https://app.wandb.ai/tshmak/uncategorized/runs/1s4m5go1

In [5]: import torch

In [6]: wandb.init()
<IPython.core.display.HTML object>
Failed to query for notebook name, you can set it manually with the WANDB_NOTEBOOK_NAME environment variable
SIGWINCH handler was not None: <Handlers.SIG_DFL: 0>
Out[6]: W&B Run: https://app.wandb.ai/tshmak/uncategorized/runs/2dsu7jlm

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
wiseyoungbuckcommented, Jul 14, 2020

I also still have this issue using JupyterLab. Seeting the OS environment variable does not fix it either.

7reactions
issue-label-bot[bot]commented, Jul 10, 2020

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.73. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to query for notebook name #1153 - wandb ... - GitHub
Failed to query for notebook name, you can set it manually with the WANDB_NOTEBOOK_NAME environment variable. by setting.
Read more >
Tracking Jupyter Notebooks - Documentation - Weights & Biases
If you're seeing the error message "Failed to query for notebook name, you can set it manually with the WANDB_NOTEBOOK_NAME environment variable," you...
Read more >
Notebook validation failed Jupyter - Stack Overflow
First select all the cells in the Jupyter Notebook, then press the "cut/scissors" button ... Code to resave a notebook with the cell...
Read more >
Jupyter · GitBook
If you're seeing the error message "Failed to query for notebook name, you can set it manually with the WANDB_NOTEBOOK_NAME environment variable," you...
Read more >
I am trying to run a simple sql query from Jupyter notebook ...
I am trying to run a simple sql query from Jupyter notebook and I am running into the below error: Failed to find...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found