from nbdialog.core import *
from nbdialog.providers.openai import OpenAIProvider
from nbdialog.tools import search, browse
set_provider(OpenAIProvider())
set_tools([search.web_search, browse.browse])Small demo
Small test subject used to understand and test notebook internals
write me hello world in python, like a pirate!print("Ahoy, world!")def hello():
print("Hello matey!")
hello()Hello matey!
which is better?Yours is better for the brief.
def hello():
print("Hello matey!")
hello()Why: - it’s actually pirate-flavored - it’s wrapped in a function, so it’s reusable - it already runs and matches the notebook context
If you want the most minimal pirate version:
print("Ahoy, world!")Give me top 5 news about bitcoin as of May 12 2026