This API fetches the source code and metadata of cells identified by tag. In Jupyter Lab, open the Cell Tools side bar and then click on a cell to see and edit its metadata.
//This is comment b=2+2
beakerx.getCodeCells('mytag')[0]