-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
do not load notebook elements when no notebook is running #278
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
import logging | ||
import math | ||
import sys | ||
import os | ||
import io | ||
import numpy as np | ||
import json | ||
|
@@ -35,6 +36,13 @@ def tprint(string, dt=1, tag='default'): | |
print(string) | ||
_tprint_times[tag] = time.time() | ||
|
||
def frontend(): | ||
""" Return frontend used | ||
|
||
Returns | ||
frontend (string): frontend used. Default is notebook | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Issue found: Trailing whitespace |
||
""" | ||
return os.environ.get('QCODESFRONTEND', 'notebook') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we really use environment variables for this? |
||
|
||
def in_notebook(): | ||
""" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue found: Trailing whitespace