-
Notifications
You must be signed in to change notification settings - Fork 5
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
hissw + CHIANTI not working in Jupyter notebook? #37
Comments
Yes, I've recently run into this and I'm stumped as to what the issue is. I've come across it in a slightly different context and I think the common issue is any IDL function that is also reading from a file. There is something about running in a Jupyter notebook that doe not like a subprocess reading from an external file. The real test of this would be if you had a (non SSW) script that tried to read from a file. This has not always been an issue and I suspect is either Python-version dependent or Jupyter notebook version dependent. What version of both of those are you running? |
You can read files in hissw directly using the IDL functions:
... but not with the CHIANTI functions. I don't know what the difference is! Versions:
|
Alright I'm still confused as to what is actually going on, but I've managed to create an environment where this problem goes away and it seems to be down to the version of Creating a fresh environment and running, $ pip install jupyter_core==5.0.0 jupyter_client==7.4.1 ipykernel==6.17.1 hissw I can then successfully run the following in a Jupyter notebook, import hissw
hissw.Environment(ssw_packages=['chianti']).run("use_chianti,'/Users/wtbarnes/ssw/packages/chianti/dbase/'") Ah, but it seems like Still not sure what the root cause is here. I'd be interested to see if we can reproduce this problem outside of |
The following code snippet works fine in a terminal, but not a Jupyter notebook. Is there anything special about Jupyter that would prevent hissw from working properly?
Error in Jupyter:
The
VERSION
file it's failing to read does in fact exist:A hello-world with hissw does work in Jupyter:
so this leads me to suspect that CHIANTI is not being properly instantiated in a Jupyter notebook. Have you encountered this?
The text was updated successfully, but these errors were encountered: