How to use the jupyter-innotater.jupyter_innotater.data.Innotation.anonindex function in jupyter-innotater

To help you get started, we’ve selected a few jupyter-innotater examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ideonate / jupyter-innotater / jupyter-innotater / jupyter_innotater / data.py View on Github external
def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        if 'name' in kwargs:
            self.name = kwargs['name']
        else:
            self.name = 'data{}'.format(Innotation.anonindex)
            Innotation.anonindex += 1

        self.desc = kwargs.get('desc', self.name)
        self.widget = None
        self.layout = kwargs.get('layout', {})
        if 'disabled' in kwargs:
            self.disabled = kwargs['disabled']
github ideonate / jupyter-innotater / jupyter-innotater / jupyter_innotater / data.py View on Github external
def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        if 'name' in kwargs:
            self.name = kwargs['name']
        else:
            self.name = 'data{}'.format(Innotation.anonindex)
            Innotation.anonindex += 1

        self.desc = kwargs.get('desc', self.name)
        self.widget = None
        self.layout = kwargs.get('layout', {})
        if 'disabled' in kwargs:
            self.disabled = kwargs['disabled']