Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the purpose of Save chats as Jupyter notebooks checkbox? #37

Closed
li-li-github opened this issue Mar 2, 2024 · 1 comment · Fixed by #41
Closed

What's the purpose of Save chats as Jupyter notebooks checkbox? #37

li-li-github opened this issue Mar 2, 2024 · 1 comment · Fixed by #41
Labels
question Further information is requested

Comments

@li-li-github
Copy link

Hi Loic and other contributors,

I just realized that if I uncheck Save chats as Jupyter notebooks, napari will throw an error and won't pop up in the web browser. (and the program won't terminate even if I close napari)

├ Error: 'NoneType' object has no attribute 'register_snapshot_function'
├ Omega failed to start. Please check the console for more information.
Traceback (most recent call last):
  File "/opt/anaconda3/envs/omega/lib/python3.10/site-packages/napari_chatgpt/_widget.py", line 467, in _start_omega
    self.server = start_chat_server(self.viewer,
  File "/opt/anaconda3/envs/omega/lib/python3.10/site-packages/napari_chatgpt/chat_server/chat_server.py", line 303, in start_chat_server
    notebook.register_snapshot_function(bridge.take_snapshot)
AttributeError: 'NoneType' object has no attribute 'register_snapshot_function'

This makes me wonder what was the intention of making it uncheckable.

@li-li-github li-li-github added the question Further information is requested label Mar 2, 2024
@royerloic
Copy link
Member

Arg. Good catch! Need to fix that!

@royerloic royerloic linked a pull request Mar 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants