Skip to content

Commit f1ceadb

Browse files
committed
use system_tools.in_ipynb() instead of __IPYTHON__
1 parent 09e2ac1 commit f1ceadb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroquery/alma/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def _login(self, username):
226226
password_from_keyring = keyring.get_password("astroquery:asa.alma.cl",
227227
username)
228228
if password_from_keyring is None:
229-
if __IPYTHON__:
229+
if system_tools.in_ipynb():
230230
log.warn("You may be using an ipython notebook:"
231231
" the password form will appear in your terminal.")
232232
password = getpass.getpass("{0}, enter your ALMA password:"

0 commit comments

Comments
 (0)