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

Inline value showing object reference instead of value #241944

Open
chrisdias opened this issue Feb 25, 2025 · 1 comment
Open

Inline value showing object reference instead of value #241944

chrisdias opened this issue Feb 25, 2025 · 1 comment
Assignees
Labels
notebook-execution Issues related to running cells in a notebook under-discussion Issue is under discussion for relevance, priority, approach

Comments

@chrisdias
Copy link
Member

Testing #241791

The inline value for python on line 18 shows me what looks like an object reference instead of a value.

Image

Here's the code for the cell:

class ProgrammingLanguage:
    def __init__(self, name, version, features):
        self.name = name
        self.version = version
        self.features = features
    
    def get_info(self):
        return f"{self.name} version {self.version}"
    
    def add_feature(self, feature):
        self.features.append(feature)
        return self.features

# Create instance using variables from previous cells
python = ProgrammingLanguage(name, version, language_info['features'])
print(python.get_info())
python.add_feature("object-oriented")
print(f"Updated features: {python.features}")
@Yoyokrazy Yoyokrazy added under-discussion Issue is under discussion for relevance, priority, approach notebook-execution Issues related to running cells in a notebook labels Feb 26, 2025
@Yoyokrazy
Copy link
Contributor

Hm, yeah I'm going to have to do a bit of work to sort out the best way to evaluate objects like this. Good spot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notebook-execution Issues related to running cells in a notebook under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

No branches or pull requests

2 participants