You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a few steps that need to be undertaken to create a new block as of datalab 0.4, as we discussed. To summarise, I would say the best option is to copy the EIS block, both Python and JS code.
Copy the eis folder in from apps into the desired block name
The block can save keys under self.data: bokeh_plot_data will cause a bockeh plot to be shown in the UI, freeform_comment will render an HTML comment.
Add a link to the block in the blocks/__init__.py file where other blocks are registered
Then in the UI:
Copy the webapp/src/components/datablock/EISBlock.vue into the desired new file
Register the new component in resources.js with the desired names
The text was updated successfully, but these errors were encountered:
There are a few steps that need to be undertaken to create a new block as of datalab 0.4, as we discussed. To summarise, I would say the best option is to copy the EIS block, both Python and JS code.
eis
folder in from apps into the desired block nameself.data
:bokeh_plot_data
will cause a bockeh plot to be shown in the UI,freeform_comment
will render an HTML comment.blocks/__init__.py
file where other blocks are registeredThen in the UI:
webapp/src/components/datablock/EISBlock.vue
into the desired new fileresources.js
with the desired namesThe text was updated successfully, but these errors were encountered: