I haven't removed the gray bars but I have made other customizations to Jupyter notebooks with Nikola. What you want to do involves Jupyter's nbconvert utility, not Nikola.
Looking at the
nbconvert project on Github, I see some things changed with templating within the past month or so. Still, the following is probably still accurate.
The nbconvert utility uses Jinja templates to convert the notebook's JSON file to HTML. (or to LaTeX, for a PDF). You can customize those templates to do whatever you want. Once you create your custom template, you'll need to instruct Nikola to use it.
In my conf.py file I have this:
IPYNB_CONFIG = {'Exporter': {'template_file': 'ipynb_themes/alt_basic.tpl'}}
In that tpl file I have this:
{% extends 'basic.tpl' %}
{% block data_png scoped %}
<div class="output_png output_subarea {{ extra_class }}">
{%- if 'image/png' in output.metadata.get('filenames', {}) %}
....etc
The basic.tpl template converts a Jupyter notebook to an HTML fragment that can be placed into a Nikola page or post. By default, Nikola uses Jupyter's basic.tpl template file, but I wanted to override a few things for how it handled images.
It would be helpful to you to find Jupyter's basic.tpl file. You'll need to find where the gray bar comes from and override that block.
It used to be here:
But they refactored it and I don't have time to track it down. When you figure it out, please let me know.
This page would probably be useful:
Alternatively, you also might be able to add something to your custom.css file. That wouldn't work for all notebook customizations though.
-Jim