-
Notifications
You must be signed in to change notification settings - Fork 24
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
Errors from the repo and also using the conda package... #21
Comments
OK, the import error is fixed just running setup.py.... sorry about that noise... But still have the other error... the |
I found that the json config file needs a version 1 key... but even with that... it is not loading the extension for me... |
I also see the value to have all the "enabling" in the config.json, but if it not working reliable we should use the notebook.json for the js part and a python config file for the server part... |
Sorry, been out doing family stuff all day. Indeed, load_extensions has to be done in user, not prefix space, which is I've just about got nbbrowserpdf pulled out, and am working on getting that On Thu, Nov 26, 2015 at 4:46 PM Damián Avila [email protected]
|
So i've gone ahead and bundled pypdf2 and ghost.py with nbbrowserpdf via pip... should be a crop of linux64 builds for 2.7-3.5 up soon!
It does the a conda_env_path In the meantime, you can probably just... jupyter nbextension enable nbpresent/nbpresent.min |
Wow, that was hair-raising. Took a number of tries to get a real build up, but it appears to be good now. I don't have a full handle on what parts are missing from the build environment that I can't actually run tests, namely:
(from this build) but it's good enough to move forward. I may still owe myself a few extension points on the new thing in order to use it with nbpresent, but it seemed like something worth getting up and running in its own right. will update! |
Oh, man. I didn't realize ConfigManager didn't handle lists gracefully. This is obviously creates a problem with Right now, whoever gets installed last is the only server extension that gets loaded. Obviously this is no good. I was trying to call |
I am working in a branch to deal with |
Sounds good... Working at the Day Job today, so it may be this evening or I think I've got my extension points squared away.... pdf_capture will I'm still a little unsure how to talk about the optional dependency on On 07:31, Fri, Nov 27, 2015 Damián Avila [email protected] wrote:
|
https://github.com/Anaconda-Server/anaconda-notebook/pull/64 I will comment on the other things later... enjoy your day! |
Btw, for your info... installing with the conda packages, when I split the notebook_config_json into 2 config files (otherwise it does not load anything for me):
with the following content:
And starting the notebook with the correct
Can it be possible some dependency problem? |
Not sure what branch you were building from... #16 was open for too long, and gathered lots of pixie dust in addition to its baseline feature. Like not being broken. I've merged #16, and done a 0.4.0 release of nbpresent and a 0.2.0 release of nbbrowserpdf. I've also done the pip builds... it doesn't require pyqt or pyside, so it's not bulletproof there, but otherwise looking good. I guess the full install would now be (once the build finishes: conda install -c nbcio nbbrowserpdf nbpresent
python -m nbpresent.install --prefix=$CONDA_ENV_PATH --enable
python -m nbbrowserpdf.install --prefix=$CONDA_ENV_PATH --enable
jupyter notebook or pip install nbbrowserpdf nbpresent pyside # or pyqt
python -m nbpresent.install --user --enable
python -m nbbrowserpdf.install --user --enable
jupyter notebook I really don't like editing a python file (or code as config, anyhow).... what do you think of how i've done this? Seems to work, and keeps everything in JSON where it can be reasoned about... |
OK, several things...
Thanks!
Well... this is how I install it...
In this way the config manager respect you config dir and you don't have to enable it with To solve this need I would use With that change you should be able to install it without any env variable and you are contained in the conda enviroment... (maybe you can look for the paths. To start the notebook properly, I had to do:
otherwise, it will look into the user space... This should be solved in some way upstream... you know... but for the time being is what we have...
OK... that's much better... I really like this pattern, now that I see it working properly... I will adjust the extension in the anaconda-notebook repo to replay this pattern... I believe is the correct way to do it... |
I think I can create a customized conda packages with my patch applied on the conda recipe, but I would like to avoid that if possible 😉 because at the end I believe the config for a conda packaged-extensions should be in the environment... |
I have opened two PRs: #22 and https://github.com/Anaconda-Server/nbbrowserpdf/pull/2 |
Merged those... I am good to close this now, and as the understanding evolves, we can revisit as needed! |
Yep, not the best solution but let's see how evolves... thanks! |
I have two error here:
ImportError: No module named 'nbpresent'
When I tried the conda package from anaconda.org/nbcio I am seeing
1
but not2
... but even with the conda package I can not see the extension...Starting from the repo I followed the lines you sent in the email last week...
@bollwyvl
The text was updated successfully, but these errors were encountered: