-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
incorrect version or language #49
Comments
Unable to import ipynb as it gives the error: "ipynb\fs\full_init_.py", line 39, in get_code raise ImportError('Could not import {path} for {fn}: incorrect version or language" Is this ipynb import supported only for some python versions? |
Same issue here using Python 3.8.5 on macOS 10.15.7. Perhaps it has to do with me using "/usr/local/bin/python3"? I'm working in VS Code. |
Btw, my workaround was to use import-ipynb instead. |
Ah, thank you - I ended up finding importnb and working with that, but I appreciate you sharing! :) |
I too experienced this error. I found that the
|
It looks like pull request #51 will fix this issue |
It would seem that this issue is still present on Google Colab. PR #51 doesn't seem to have been merged. The latest commit on main branch in this repo was on Oct 2017. To anyone reading this, I think this repo may not be active at the moment. Versions: Python 3.7.11 ipynb 0.5.1 Example: # asdf.ipynb
def foo(a,b):
print(a,b) # abc.ipynb
!pip install ipynb
from google.colab import drive
drive.mount('/content/drive/')
import sys
sys.path.append('/content/drive/MyDrive/Colab Notebooks/')
import ipynb.fs.defs.asdf gives:
|
(probably not recommended) Following on @abergerSRS answer, I looked at what the {
...
"metadata": {
...
"kernelspec": {
...
"language": "python" # <--- added line
}
...
} I do not know why this check is being made, and I am unaware of possible side effects. Therefore, I do not responsibilize myself if something goes wrong. |
… can be imported using IPython Ipynb See ipython/ipynb#49 (comment)
I have strived to import an external ipynb, but I got the following error:
I was wondering if I could know that you have ever experienced the same issue, please!
NB: I am running the codes on the Google Colab.
Thanks in advance
The text was updated successfully, but these errors were encountered: