How to use jupyter-vue - 7 common examples

To help you get started, we’ve selected a few jupyter-vue 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 mariobuikhuizen / ipyvuetify / js / src / VuetifyView.js View on Github external
this.displayed.then(() => {
            if (!document.getElementById('vuetify-styles')) {
                this.createDivs(getContainer() || document.body);
            }

            const vueEl = document.createElement('div');
            this.el.appendChild(vueEl);

            this.vueApp = new Vue({
                vuetify,
                el: vueEl,
                provide: {
                    viewCtx: createViewContext(this),
                },
                render: (createElement) => {
                    // TODO: Don't use v-app in embedded mode
                    /* Prevent re-rendering of toplevel component. This happens on button-click in
                     * v-menu */
                    if (!this.ipyvuetifyApp) {
                        this.ipyvuetifyApp = createElement('div', { class: 'vuetify-styles' }, [
                            createElement('v-app', [vueRender(createElement, this.model, this)]),
                        ]);
                    }
                    return this.ipyvuetifyApp;
                },
            });
        });
    }
github mariobuikhuizen / ipyvuetify / js / src / VuetifyView.js View on Github external
render: (createElement) => {
                    // TODO: Don't use v-app in embedded mode
                    /* Prevent re-rendering of toplevel component. This happens on button-click in
                     * v-menu */
                    if (!this.ipyvuetifyApp) {
                        this.ipyvuetifyApp = createElement('div', { class: 'vuetify-styles' }, [
                            createElement('v-app', [vueRender(createElement, this.model, this)]),
                        ]);
                    }
                    return this.ipyvuetifyApp;
                },
            });
github mariobuikhuizen / ipyvuetify / js / src / VuetifyView.js View on Github external
vueRender(createElement) {
        return createElement({
            provide: {
                viewCtx: createViewContext(this),
            },
            render: () => {
                return vueRender(createElement, this.model, this)
            },
        });
    }
}
github mariobuikhuizen / ipyvuetify / js / src / nodepsVuetifyView.js View on Github external
vueRender(createElement) {
        return createElement({
            provide: {
                viewCtx: createViewContext(this),
            },
            render: () => {
                return vueRender(createElement, this.model, this)
            },
        });
    }
}
github mariobuikhuizen / ipyvuetify / js / src / nodepsVuetifyView.js View on Github external
render: () => {
                return vueRender(createElement, this.model, this)
            },
        });
github mariobuikhuizen / ipyvuetify / js / src / Html.js View on Github external
return {
            ...super.defaults(),
            ...{
                _model_name: 'HtmlModel',
                _view_name: 'VuetifyView',
                _view_module: 'jupyter-vuetify',
                _model_module: 'jupyter-vuetify',
                _view_module_version: '0.1.11',
                _model_module_version: '0.1.11',
            },
        };
    }
}

HtmlModel.serializers = {
    ...VueHtmlModel.serializers,
};
github mariobuikhuizen / ipyvuetify / js / src / VuetifyTemplate.js View on Github external
return {
            ...super.defaults(),
            ...{
                _model_name: 'VuetifyTemplateModel',
                _view_name: 'VuetifyView',
                _view_module: 'jupyter-vuetify',
                _model_module: 'jupyter-vuetify',
                _view_module_version: '0.1.0',
                _model_module_version: '0.1.0',
            },
        };
    }
}

VuetifyTemplateModel.serializers = {
    ...VueTemplateModel.serializers,
};

jupyter-vue

Jupyter widgets base for Vue libraries

MIT
Latest version published 1 month ago

Package Health Score

66 / 100
Full package analysis