Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

TypeError: set_css() takes 0 positional arguments but 1 was given #205

@msusol

Description

@msusol

source: notebooks/llmu/Introduction_to_RAG.ipynb

#@title Enable text wrapping in Google Colab

from IPython.display import HTML, display

def set_css():
    display(HTML('''
    <style>
        pre {
            white-space: pre-wrap;
        }
    </style>
    '''))

get_ipython().events.register('pre_run_cell', set_css)

running the notebook in IntelliJ yields

Error in callback <function set_css at 0x1042df380> (for pre_run_cell), with arguments args (<ExecutionInfo object at 10425b500, raw_cell="from IPython.display import HTML, display

def set.." store_history=True silent=False shell_futures=True cell_id=None>,),kwargs {}:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
TypeError: set_css() takes 0 positional arguments but 1 was given

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions