Giter VIP home page Giter VIP logo

Comments (19)

kirbs- avatar kirbs- commented on May 31, 2024

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.

felciano avatar felciano commented on May 31, 2024

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.

kirbs- avatar kirbs- commented on May 31, 2024

That's helpful. The error message indicates nbconvert 5.x+ is being used instead of 4.3.

from hide_code.

felciano avatar felciano commented on May 31, 2024

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.

kirbs- avatar kirbs- commented on May 31, 2024

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.

kirbs- avatar kirbs- commented on May 31, 2024

Would you try out the dev branch and see if resolves the issue?

from hide_code.

lwasser avatar lwasser commented on May 31, 2024

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.

wino6687 avatar wino6687 commented on May 31, 2024

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.

kirbs- avatar kirbs- commented on May 31, 2024

@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.

felciano avatar felciano commented on May 31, 2024

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.

kirbs- avatar kirbs- commented on May 31, 2024

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.

kirbs- avatar kirbs- commented on May 31, 2024

Also what version of notebook are you using?

from hide_code.

felciano avatar felciano commented on May 31, 2024

Using jupyter 4.3.0 (assume that is what you mean by notebook)

from hide_code.

kirbs- avatar kirbs- commented on May 31, 2024

Run pip list | grep notebook.

from hide_code.

felciano avatar felciano commented on May 31, 2024

Notebook 5.0.0

from hide_code.

kirbs- avatar kirbs- commented on May 31, 2024

@felciano would you upgrade to 0.5.0 and check?

from hide_code.

kirbs- avatar kirbs- commented on May 31, 2024

I believe this is fixed now. Closing issue.

from hide_code.

christophergaughan avatar christophergaughan commented on May 31, 2024

I don't see the fix

from hide_code.

kirbs- avatar kirbs- commented on May 31, 2024

Please open a new issue and I'll help you there.

from hide_code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.