app/models/jupyter_notebook.rb
# Remove (most) metadata added by Gallery
Remove (most) metadata added by Gallery
Remove ( most ) metadata added by Gallery
def strip_gallery_meta!
    gallery = @notebook.dig('metadata', 'gallery')
    %w[link clone commit].each {|k| gallery.delete(k)} if gallery
    self
  end
def strip_gallery_meta! gallery = @notebook . dig ( 'metadata' , 'gallery' ) %w[ link clone commit ] . each { | k | gallery . delete ( k ) } if gallery self end
Remove (most) metadata added by Gallery
Remove ( most ) metadata added by Gallery