現在、Jupyterノートブックでhandontableを使用している人がいるのだろうかと思っていました。しかし、これらの命令は、ノートブック/ ipywidgetsの現在のバージョンで動作し、非常に古くなっていないJupyterノートブックのHandsontable
https://gist.github.com/rossant/9463955
https://gist.github.com/rdhyee/9897356
:私からの指示に従ってきました。
私は、次のhandsontable例を実装したいと思います:私はノートブックにhandsontable.full.cssとhandsontable.full.jsをロードすると、私はすべてのエラーをhttp://jsfiddle.net/handsoncode/s6t768pq/
得ることはありません。しかし、私はこのエラーを受け取ります:ReferenceError:Handsontableが定義されていませんノートブックで次のコードを実行しようとしています(これは正しいコードではありません)。
%%javascript
requirejs.config({
paths: {
'handsontable': ['http://docs.handsontable.com/0.34.0/bower_components/handsontable/dist/handsontable.full'],
},
});
require(['handsontable'], function(handsontable) {
console.log("Loaded :)");
var data = function() {
return Handsontable.helper.createSpreadsheetData(100, 10);
};
var container = document.getElementById('example');
var hot = new Handsontable(container, {
data: data(),
minSpareCols: 1,
minSpareRows: 1,
rowHeaders: true,
colHeaders: true,
contextMenu: true
});
return{};
});
ありがとうございました!ノートに手錠を挿入する簡単な例を示すために質問を編集しました。以前はqgridを調べていましたが、積極的に開発されていないため、使用することを恐れていました。私はそれをもう一度見ます。 – AlC