Skip to content

Commit

Permalink
Don't show navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtabor committed Jan 25, 2022
1 parent 23b303d commit b16eb0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions igv/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,12 @@ def status(self, value):
time.sleep(0.5)
self._send(self.message_queue.pop(0))

def show(self):
def show(self, navbar=False):
"""Create an igv.js "Browser" instance on the front end."""
display(HTML(f"""<div class="igv-navbar"></div><div id="{self.igv_id}"></div>"""))
if navbar: navbar_html = '<div class="igv-navbar"></div>'
else: navbar_html = ''

display(HTML(f"""{navbar_html}<div id="{self.igv_id}"></div>"""))

# DON'T check status before showing browser,
msg = json.dumps({
Expand Down
2 changes: 1 addition & 1 deletion igv/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def decorator(func):
def igv_tool(genome, tracks=None, indices=None, track_format=None, track_type=None, locus=None):
# Create the genome browser and display it
browser = Browser({"genome": genome, "locus": locus})
browser.show()
browser.show(navbar=True)

# Ensure tracks and indices are represented as lists
if tracks is None: tracks = []
Expand Down

0 comments on commit b16eb0e

Please sign in to comment.