Comments (19)
Is a new window/tab opening up? Also what happens if you use the command line version to export? e.g.jupyter nbconvert --to hide_code_html notebook_to_convert.ipynb
from hide_code.
When I try the command line version I see this error right away:
[NbConvertApp] WARNING | Config option `template_path` not recognized by `HideCodeHTMLExporter`. Did you mean one of: `template_extension, template_file`?
from hide_code.
That's helpful. The error message indicates nbconvert 5.x+ is being used instead of 4.3.
from hide_code.
Strange -- I already did this. Here's what I see if I try again:
myuser$ pip install 'nbconvert==4.3.0' --force-reinstall
Requirement already satisfied: nbconvert==4.3.0 in /Users/myuser/.Virtualenvs/content-stats/lib/python2.7/site-packages
This seems to confirm it:
myuser$ pip list
... (stuff omitted) ...
ipykernel (4.6.1)
ipython (5.4.1)
ipython-genutils (0.2.0)
ipywidgets (7.0.0)
jupyter (1.0.0)
jupyter-client (5.1.0)
jupyter-console (5.2.0)
jupyter-contrib-core (0.3.3)
jupyter-contrib-nbextensions (0.3.1)
jupyter-core (4.3.0)
jupyter-highlight-selected-word (0.0.11)
jupyter-latex-envs (1.3.8.4)
jupyter-nbextensions-configurator (0.2.7)
MarkupSafe (1.0)
... (stuff omitted) ...
nbconvert (4.3.0)
nbformat (4.4.0)
...
Any suggestions on how to diagnose this further?
from hide_code.
I'll dig into nbconvert some more. Just to check the obvious, you're running Jupyter from the same virtualenv nbconvert 4.3.0 is installed on, correct?
from hide_code.
Would you try out the dev branch and see if resolves the issue?
from hide_code.
Hey there! I am having the same issue with this library. It seems like the perfect solution to writing reports with jupyter notebook which i do with my students. It works for me sometimes and others it doesn't work. Help to help with the troubleshooting if I can post additional information.
from hide_code.
Hey everyone, I am also having this issue. Most of the time if I export to html after hiding either all of the code or some of the code, it still appears in the exported doc. I managed to get one random export to work, but definitely not consistently. I would appreciate any help as this is a great addition to jupyter!
from hide_code.
@lwasser @wino6687 if you post some additional details I can help. Just please create a separate issue if you see a different error message after going through the steps above. Multiple topics in the same issue makes it difficult to manage the process.
The specific issue @felciano mentioned I think is resolved in the dev branch.
from hide_code.
Hi @kirbs- I'm trying to test it but no luck. Before I debug further, can you confirm that I'm installing from the right place:
pip install git+git://github.com/kirbs-/hide_code.git@dev
After doing the above I still see the error:
mydir$ jupyter nbconvert --to hide_code_html analysis.ipynb
[NbConvertApp] WARNING | Config option `template_path` not recognized by `HideCodeHTMLExporter`. Did you mean one of: `template_extension, template_file`?
from hide_code.
That looks fine to me. My dev environment isn't in sync with your listed above. I'll sync it up and see if there's a bug in a specific version of package.
from hide_code.
Also what version of notebook are you using?
from hide_code.
Using jupyter 4.3.0 (assume that is what you mean by notebook)
from hide_code.
Run pip list | grep notebook
.
from hide_code.
Notebook 5.0.0
from hide_code.
@felciano would you upgrade to 0.5.0 and check?
from hide_code.
I believe this is fixed now. Closing issue.
from hide_code.
I don't see the fix
from hide_code.
Please open a new issue and I'll help you there.
from hide_code.
Related Issues (20)
- URL for exports are incorrect using jupyterhub HOT 1
- Support for recent nbconvert and traitlets HOT 4
- Invalid file name and extension if title contains spaces
- It is impossible to export to HTML if notebook was renamed
- Export to HTML and PDF still with the output HOT 6
- Hide code : Support for letters with accent marks HOT 2
- Using hide_code then convert to PDF HOT 1
- Add Binder demo HOT 1
- Use tags to identify cell disclosure state
- hide-code v0.5.5 cannot be installed via pypi HOT 2
- Install with Conda HOT 1
- Installation problem - No module named hide_code_html_exporter HOT 9
- Exporting result in 404 error on Jupyterhub HOT 1
- 404 : Not Found You are requesting a page that does not exist! HOT 4
- Export issue (jinja2.exceptions.TemplateNotFound: hide_code_full.tpl) HOT 8
- 500: Internal Server Error when exporting to... anything? HOT 6
- Jupyter Lab 3.0 not supported HOT 4
- Can't install into an empty virtual environment HOT 1
- Traitlets too old for Jupyter Server HOT 3
- Impossible to make it work with jupyter installed with anaconda
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hide_code.