Comments (2)
This is my attempt to fix the problem criteo-forks#2
from nbconflux.
@makammoun, I tried your patch by installing directly from your fork, but it didn't work for me. It certainly improved the result, because it was a runtime error with templates rather than a class hierarchy issue. This is what I got:
(dataviz) NLM01991848OCCS:serials-alma davisda4$ nbconflux test_scripts/API-Comparison.ipynb https://wiki.nlm.nih.gov/confluence/pages/editpage.action?pageId=220366732
Confluence username (davisda4):
Confluence password:
Traceback (most recent call last):
File "/Users/davisda4/envs/dataviz/lib/python3.8/site-packages/traitlets/traitlets.py", line 535, in get
value = obj._trait_values[self.name]
KeyError: 'template_paths'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/davisda4/envs/dataviz/bin/nbconflux", line 8, in <module>
sys.exit(main())
File "/Users/davisda4/envs/dataviz/lib/python3.8/site-packages/nbconflux/cli.py", line 55, in main
notebook_to_page(args.notebook, args.url, username, password,
File "/Users/davisda4/envs/dataviz/lib/python3.8/site-packages/nbconflux/api.py", line 60, in notebook_to_page
exporter = ConfluenceExporter(c)
File "/Users/davisda4/envs/dataviz/lib/python3.8/site-packages/nbconflux/exporter.py", line 99, in __init__
super(ConfluenceExporter, self).__init__(config=config, **kwargs)
File "/Users/davisda4/envs/dataviz/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 325, in __init__
super().__init__(config=config, **kw)
File "/Users/davisda4/envs/dataviz/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 114, in __init__
self._init_preprocessors()
File "/Users/davisda4/envs/dataviz/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 491, in _init_preprocessors
conf = self._get_conf()
File "/Users/davisda4/envs/dataviz/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 507, in _get_conf
for path in map(Path, self.template_paths):
File "/Users/davisda4/envs/dataviz/lib/python3.8/site-packages/nbconflux/exporter.py", line 91, in template_paths
return super().template_paths + [os.path.join(os.path.abspath(os.path.dirname(__file__)), 'templates')]
File "/Users/davisda4/envs/dataviz/lib/python3.8/site-packages/traitlets/traitlets.py", line 575, in __get__
return self.get(obj, cls)
File "/Users/davisda4/envs/dataviz/lib/python3.8/site-packages/traitlets/traitlets.py", line 538, in get
default = obj.trait_defaults(self.name)
File "/Users/davisda4/envs/dataviz/lib/python3.8/site-packages/traitlets/traitlets.py", line 1574, in trait_defaults
raise TraitError("'%s' is not a trait of '%s' "
traitlets.traitlets.TraitError: 'template_paths' is not a trait of 'ConfluenceExporter' instances
from nbconflux.
Related Issues (20)
- Add documentation for using API Token HOT 2
- Supporting ipywidgets? HOT 2
- Remove code cells HOT 3
- Win7/MingW64: Command prompt stuck at "Confluence username" HOT 4
- Display plotly charts HOT 2
- Exclude cells by default HOT 1
- Prevent notifications to page watcher
- Find page by space and title HOT 1
- matplotlib images not working in my environment HOT 3
- --exclude-style no longer working
- MathJax issues HOT 5
- Authenticate to Confluence with oauth2
- Conversion fails HOT 1
- TraitError when attempting to convert ipynb to confluence page HOT 3
- Remove Code Cells with CLI Argument
- Facing Hard time to include "Code" macro instead of style. My confluence server does not support styling. So for code blocks I need to
- Facing Hard time to include "Code" macro instead of style. My confluence server does not support styling. So for code blocks I need to use "Code Macro"
- The 'exporter' trait of a ConfluencePreprocessor instance expected a ConfluenceExporter, not the NoneType None.
- Installation failed: Getting requirements to build wheel ... error HOT 2
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 nbconflux.