Giter VIP home page Giter VIP logo

Comments (5)

guidov avatar guidov commented on May 31, 2024

just a further comment , would it be possible to do the install similar to how the livereval (RISE) extension is installed?

https://github.com/damianavila/RISE

from hide_code.

kirbs- avatar kirbs- commented on May 31, 2024

Can you try the code below?

python -c "import hide_code.hide_code as hc; hc.install('<insert full path to custom folder>')"

Also, are you sure jupyter is installed for root? You should see it (and notebook) listed if you run pip list.

from hide_code.

guidov avatar guidov commented on May 31, 2024

I'm getting these messages:

Also note the error I'm getting under python3

——> python -c "import hide_code.hide_code as hc;
hc.install('/home/user/.jupyter/custom')"
Starting hide_code.js install
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/hide_code/hide_code.py",
line 20, in install
install_path = np_path
NameError: global name 'np_path' is not defined

——> ipython
Python 3.4.3 (default, Mar 26 2015, 22:03:40)
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: import hide_code.hide_code as hc
File "/usr/local/lib/python3.4/dist-packages/hide_code/hide_code.py",
line 11
print 'Starting hide_code.js install'
^
SyntaxError: Missing parentheses in call to 'print'

In [2]: exit

——> ipython2
Python 2.7.9 (default, Apr 2 2015, 15:33:21)
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: import hide_code.hide_code as hc

In [2]: hc.install('~/.jupyter/custom')

Starting hide_code.js install

NameError Traceback (most recent call last)
in ()
----> 1 hc.install('~/.jupyter/custom')

/usr/local/lib/python2.7/dist-packages/hide_code/hide_code.pyc in
install(nb_path, DEBUG)
18
19 if nb_path != None:
---> 20 install_path = np_path
21 print "Using " + install_path
22

NameError: global name 'np_path' is not defined

In [3]:

For the pip installed packages
####################################################################################
——> pip list | grep jupyter
jupyter (1.0.0)
jupyter-client (4.0.0)
jupyter-console (4.0.2)
jupyter-core (4.0.6)

On Mon, Sep 21, 2015 at 2:23 PM, kirbs- [email protected] wrote:

Can you try the code below?

python -c "import hide_code.hide_code as hc; hc.install('')"

Also, are you sure jupyter is installed for root? You should see it (and
notebook) listed if you run pip list.


Reply to this email directly or view it on GitHub
https://github.com/kirbs-/hide_code/issues/1#issuecomment-142067305.

from hide_code.

kirbs- avatar kirbs- commented on May 31, 2024

I think I fixed the issue. Would you download the dev branch, unzip and run python setup.py install?

from hide_code.

guidov avatar guidov commented on May 31, 2024

The dev branch works great!

running install_scripts
Running post install task
Starting hide_code.js install
Copying hide_code.js to /home/user/.jupyter/custom
Configured custom.js to auto-load hide_code.js

Thanks, this is a really useful extension.

On Mon, Sep 21, 2015 at 3:41 PM, kirbs- [email protected] wrote:

I think I fixed the issue. Would you download the dev branch, unzip and
run python setup.py install?


Reply to this email directly or view it on GitHub
https://github.com/kirbs-/hide_code/issues/1#issuecomment-142088095.

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.