-
Notifications
You must be signed in to change notification settings - Fork 42
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
"NameError: name '_' is not defined" running ipymd
from commandline
#87
Comments
Just confirmed: editing
So we now have: try:
from notebook import transutils
from notebook.services.contents.filemanager import FileContentsManager
except ImportError:
from IPython.html.services.contents.filemanager import FileContentsManager instead of try:
from notebook.services.contents.filemanager import FileContentsManager
except ImportError:
from IPython.html.services.contents.filemanager import FileContentsManager |
Thanks! would you consider proposing a pull request? |
Sorry for not replying sooner. I could do a pull request, but for a one line addition I figured it'd be faster to just tell you about it rather than fussing with forking the project and creating a pull request and all that. |
I also ran into this, so I created a PR as per the fix above: #89 |
Awesome! Thanks :) |
FYI: still happens (to me) when using the pip version of ipymd |
I have yet to do a new release, you can |
Hi @rossant,
It seems you already discovered this problem (jupyter/notebook#3056 (comment)), but the version of ipymd currently on PyPI and available through
pip
does not handle this correctly for commandline conversion ofipynb
files to Markdown.Sample attempt:
However, I haven't had any problems when running notebooks already saved as Markdown from within a Jupyter notebook session or saving these.
From that
jupyter/notebook
thread, I take it you just need to add the bit abouttransutils
to the commandline script.Version information:
The text was updated successfully, but these errors were encountered: