Commit Graph

597 Commits

Author SHA1 Message Date
Vassil Vassilev
359fa4132d Forward to more-up-to-date repository 2017-06-08 15:44:37 +02:00
Diego Torres Quintanilla
952cf58b0d Fixed codemirror mode to appropriate value. Syntax highlighting in jupyter lab should work when https://github.com/jupyterlab/jupyterlab/pull/2187 is merged. 2017-05-12 09:14:05 +02:00
Axel Naumann
8c3afd1d0a Link against all available targets. 2017-05-09 09:59:05 +02:00
Axel Naumann
b9dbe1614f Update notebook, esp the kernelspec name. 2017-05-02 11:59:10 +02:00
Axel Naumann
8e2700d753 Fix ZMQ issues with threading:
run all ZMQ send()s from the main thread; run cling in a sub-thread.
2017-05-02 11:59:10 +02:00
Axel Naumann
2f13d674eb Do not echo expression results; kernel handles it. 2017-05-02 11:59:10 +02:00
Axel Naumann
97ec4b8e8a Add doc on the sideband mechanism. 2017-05-02 11:59:09 +02:00
Axel Naumann
795adc43e1 Point to authoritative repos; fixes cling builds with cpt. 2017-04-28 18:59:24 +02:00
Axel Naumann
a2cc4528e6 Update location of Jupyter kernel. 2017-04-28 18:59:24 +02:00
Santiago Castro
1b831f04f6 Fix broken Markdown headings
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2017-04-17 20:29:34 +02:00
Axel Naumann
7a083b672a Update doc to follow change in kernel name - thanks, Steven R. Brandt! 2017-04-07 08:44:08 +02:00
Vassil Vassilev
07065b3fff Teach cpt how to handle --create-dev-env Release option. 2017-04-06 19:59:23 +02:00
Axel Naumann
af310ace1d Reflect changed Github repo name. 2017-04-05 11:44:05 +02:00
Axel Naumann
853aa86a45 Remove stray semicolon (nfc). 2017-03-31 16:44:04 +02:00
Axel Naumann
de56970ff0 Shorten the readme path a bit. 2017-03-22 11:20:50 +01:00
Axel Naumann
c3f3247006 More relevant / less obscure examples. Indent. 2017-03-21 21:14:33 +01:00
Axel Naumann
cb73393548 Build cling-demo as part of cling. 2017-03-20 15:44:07 +01:00
Axel Naumann
58b1ee1c14 Use static_cast; nicer print-out. 2017-03-20 09:44:04 +01:00
Axel Naumann
e847f2f5bc Add (c) header. 2017-03-19 23:14:05 +01:00
Axel Naumann
276505ffff Formatting. 2017-03-19 23:14:05 +01:00
Axel Naumann
5d829fa310 Add an example of a CMake project using cling (Issue 23). 2017-03-19 22:59:33 +01:00
Frederich Munch
f1def4fefd Appveyor: Build with Ninja on Windows. 2017-03-09 08:29:28 +01:00
Spencer Lyon
cf0019ab82 fix typo in jupyer kernel readme. 2017-03-07 15:29:26 +01:00
PrometheusPi
5e44b44f52 fix path to jupyter kernel install 2017-03-07 15:29:26 +01:00
Bertrand Bellenot
536c10ce34 Use correct way of checking Debug build
The CMAKE_BUILD_TYPE CMake variable is only valid for single-configuration generator (like Linux Makefiles), and not for multi-configuration generator (like for Visual Studio). So let's try to use a CMake generator expression instead.
2017-02-22 10:34:07 +01:00
Sylvain Corlay
8bd13badc1 rename kernels
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2017-02-21 20:23:27 +01:00
Frederich Munch
08d43f7ac0 CMake: Export global new and delete operators.
Note: There is still a problem with LLVM’s lookup of symbols and a change is needed
there for the full benefit.
2017-02-21 16:34:19 +01:00
Frederich Munch
9d2f1b4bde CPT: Test installed version of CMake is less than 3.6.2 before downloading another. 2017-02-21 16:34:19 +01:00
Frederich Munch
e437621fd4 CPT: Use Appveyor’s clone for building. Try to use Appveyor’s caching for build directory. 2017-02-21 16:34:19 +01:00
Frederich Munch
8d6377f3a7 Windows: Split up exports into groups and make it easier to understand what’s forced to be exported. 2017-02-17 15:14:06 +01:00
Bertrand Bellenot
40f433e769 Export more symbols (decreasing the failing tests from 17 to 10) 2017-02-14 14:59:43 +01:00
Frederich Munch
b56254c0e7 Windows: Add explicit exports that aren’t being exported. 2017-02-09 16:45:10 +01:00
Frederich Munch
e245220dff Cleanup main and add InvocationOptions::IsInteractive method. 2017-02-01 13:14:11 +01:00
Frederich Munch
8aa8395cd6 Early out Interpreter initialization when invoked via '-v' or '-version'. 2017-02-01 13:14:11 +01:00
Frederich Munch
14437862ef Handle -E flag to dump preprocessor definitions. 2017-02-01 13:14:11 +01:00
Frederich Munch
592e61ba1e Feature to generate precompiled headers. 2017-02-01 13:14:11 +01:00
Frederich Munch
6aa837920e Check initialization is proceeding as expecting.
Don't blindly run through initialization; make sure things are going according to plan.
If not handle it and run destructors without crashing.
Return standard error codes from main.
2017-02-01 13:14:11 +01:00
Frederich Munch
0153f63690 Windows: Make sure to export type_info globals. 2016-12-20 12:59:08 +01:00
Axel Naumann
400c6402c9 Use -force_load instead of -all_load.
-(no)all_load is not position sensitive, and -noall_load triggers a warning.
2016-12-20 12:44:09 +01:00
Axel Naumann
43fe0be0a0 From Roman Zulak: Flush stdout less (cling). 2016-12-19 13:59:11 +01:00
Frederich Munch
075f4ffa83 Add cling output streams to cling/Utils/Output.h 2016-12-19 13:59:11 +01:00
Bertrand Bellenot
f98f5a0096 Should fix cling.exp : error LNK2001: unresolved external symbol "char const * const cling::valuePrinterInternal::kEmptyCollection" 2016-12-01 17:14:05 +01:00
Maarten Scholl
0a1bab6bd8 Fixed c++17 version name in kernel file
I encountered the following error and the above change fixed it

Nov 22 22:37:47 thesis jupyter[2811]: [I 22:37:47.646 NotebookApp] The Jupyter Notebook is running at: http://0.0.0.0:8888/
Nov 22 22:37:47 thesis jupyter[2811]: [I 22:37:47.646 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Nov 22 22:38:20 thesis jupyter[2811]: [I 22:38:20.303 NotebookApp] Kernel started: e416bf37-4f24-4aee-8e25-45c6fbbb85e6
Nov 22 22:38:21 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | Bad config encountered during initialization:
Nov 22 22:38:21 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | The 'std' trait of a ClingKernel instance must be any of ['c++11', 'c++14', 'c++17'], but a value of 'c++1z' <class 'str'> was specified.
Nov 22 22:38:23 thesis jupyter[2811]: [I 22:38:23.308 NotebookApp] KernelRestarter: restarting kernel (1/5)
Nov 22 22:38:24 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | Bad config encountered during initialization:
Nov 22 22:38:24 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | The 'std' trait of a ClingKernel instance must be any of ['c++11', 'c++14', 'c++17'], but a value of 'c++1z' <class 'str'> was specified.
Nov 22 22:38:26 thesis jupyter[2811]: [I 22:38:26.326 NotebookApp] KernelRestarter: restarting kernel (2/5)
Nov 22 22:38:27 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | Bad config encountered during initialization:
Nov 22 22:38:27 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | The 'std' trait of a ClingKernel instance must be any of ['c++11', 'c++14', 'c++17'], but a value of 'c++1z' <class 'str'> was specified.
Nov 22 22:38:29 thesis jupyter[2811]: [I 22:38:29.332 NotebookApp] KernelRestarter: restarting kernel (3/5)
Nov 22 22:38:30 thesis jupyter[2811]: [W 22:38:30.348 NotebookApp] Timeout waiting for kernel_info reply from e416bf37-4f24-4aee-8e25-45c6fbbb85e6
Nov 22 22:38:30 thesis jupyter[2811]: [I 22:38:30.365 NotebookApp] New terminal with specified name: 1
Nov 22 22:38:30 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | Bad config encountered during initialization:
Nov 22 22:38:30 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | The 'std' trait of a ClingKernel instance must be any of ['c++11', 'c++14', 'c++17'], but a value of 'c++1z' <class 'str'> was specified.
Nov 22 22:38:32 thesis jupyter[2811]: [I 22:38:32.338 NotebookApp] KernelRestarter: restarting kernel (4/5)
Nov 22 22:38:32 thesis jupyter[2811]: WARNING:root:kernel e416bf37-4f24-4aee-8e25-45c6fbbb85e6 restarted
Nov 22 22:38:32 thesis jupyter[2811]: [W 22:38:32.664 NotebookApp] Session not found: session_id='19509685-b888-480b-897b-be2cc8fed1cc'
Nov 22 22:38:32 thesis jupyter[2811]: [W 22:38:32.665 NotebookApp] 404 DELETE /api/sessions/19509685-b888-480b-897b-be2cc8fed1cc (192.168.0.24) 3.67ms referer=http://192.168.0.31:8888/notebooks/Untitled.ipynb?kernel_name=cling-c++17
Nov 22 22:38:33 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | Bad config encountered during initialization:
Nov 22 22:38:33 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | The 'std' trait of a ClingKernel instance must be any of ['c++11', 'c++14', 'c++17'], but a value of 'c++1z' <class 'str'> was specified.
Nov 22 22:38:35 thesis jupyter[2811]: [W 22:38:35.349 NotebookApp] KernelRestarter: restart failed
Nov 22 22:38:35 thesis jupyter[2811]: [W 22:38:35.350 NotebookApp] Kernel e416bf37-4f24-4aee-8e25-45c6fbbb85e6 died, removing from map.
Nov 22 22:38:35 thesis jupyter[2811]: ERROR:root:kernel e416bf37-4f24-4aee-8e25-45c6fbbb85e6 restarted failed!
Nov 22 22:38:35 thesis jupyter[2811]: ERROR:root:kernel e416bf37-4f24-4aee-8e25-45c6fbbb85e6 restarted failed!
Nov 22 22:38:35 thesis jupyter[2811]: [W 22:38:35.368 NotebookApp] Kernel deleted before session
Nov 22 22:38:35 thesis jupyter[2811]: [W 22:38:35.369 NotebookApp] 410 DELETE /api/sessions/ff344691-8fd6-4207-902e-01c944bdf7ae (192.168.0.24) 2.13ms referer=http://192.168.0.31:8888/notebooks/Untitled.ipynb
2016-11-23 08:59:46 +01:00
erlanger
c5216dd7b8 fix bug with os.readlink and regular files
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-22 18:36:13 +01:00
erlanger
20420081cf support for c++17 (c++1z) in jupyter
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-22 18:36:13 +01:00
erlanger
34460a3907 jupyter C++14/11: missing files in prev commit
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-22 18:36:13 +01:00
erlanger
be4ad78245 Support for C++11/C++14 in jupyter
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-22 18:36:13 +01:00
Roman Zulak
1e004e9d3a Fix printing of collections. Make it impossible for a collection with 1 element to match the string of an empty collection. Avoid checking if comma needs to be added in loop. Make an empty tuple print same as empty collection: '{}'.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:34 +01:00
Axel Naumann
2e7ac15af4 Add missing optimizer libs. 2016-11-15 16:44:32 +01:00
erlanger
293931e1d5 Try APPLE instead of XCODE
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-10-26 15:10:30 +02:00
erlanger
c262858fb2 XCODE fix for unresolved symbols
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-10-26 15:10:30 +02:00
erlanger
84b96e5980 Include all symbols from interpreter in jupyter shared lib
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-10-26 15:10:30 +02:00
Pedro Henriques dos Santos Teixeira
615beb1def Does not ignore IPKernelApp.init_io
In latest jupyter versions this fixes AttributeError 'ClingKernelApp object has no attribute displayhook'
2016-09-22 16:21:01 +02:00
Vassil Vassilev
5431895caa Download the nsis compiler only when we pack cling. 2016-09-17 13:14:53 +02:00
Vassil Vassilev
95f07ec272 Cling standalone cmake builds on Windows require cmake 3.6.2.
We need to export symbols from cling's executable which was not possible until
the accepted in cmake patch by Bertrand.
2016-09-17 12:38:03 +02:00
Roman Zulak
5c8feeeb11 CPT: Fix optional argument being used as string. 2016-09-16 10:27:58 +02:00
Bertrand Bellenot
63514775af Fix problem of tar file creation on Windows (slash vs backslash issue) 2016-08-26 09:44:15 +02:00
Bertrand Bellenot
52839d827f Revert last change 2016-08-25 12:14:21 +02:00
Bertrand Bellenot
ba7c310d93 Try to fix the "WindowsError: [Error 2] The system cannot find the file specified" 2016-08-24 17:44:20 +02:00
Roman Zulak
dda75d5636 CPT: Add 'compiler' argument.
Explicitly passing the compiler from Travis or Appveyor allows it to be printed in the log more apparently.
Can further be extended to mark dependencies when building packages, or even copy C++ headers into install.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
6da7148d77 CPT: Add Build class and initial support for libc++ on Windows.
Build class can handle differences between Windows and Unix CMake.
libc++ on Windows is thoroughly untested.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
d28809327d CPT: Add --current_dev:branch[es] flag to build specific branches.
This makes it easier for contributors to use cling's Travis config while
testing changes they would like to submit.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
5f90efb317 CPT: Add ability to build libc++ with cling.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
7703d89956 CPT: Add --with-cmake-flags to pass explicit flags to CMake.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
2fd045e85f CPT: Disable fancy box printing on OS X, it's breaking Travis now.
Perhaps the file encoding has changed?

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
f3e49bca33 CPT: Run cling showing include paths after build on Travis.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-19 13:44:09 +02:00
Roman Zulak
f7983e7751 Travis: Move logic into local functions.
Run ccache and build from the same block to control the result code.
Set CLING_BUILD_TIMEOUT in timeout. (+1 squashed commit)
Add ability to view / export CCACHE_LOGFILE.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-19 13:44:09 +02:00
Roman Zulak
abbd7814d5 CPT: Only limit cpus if building on Travis.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-19 13:44:09 +02:00
Roman Zulak
a7276f0df0 CPT: Fix Problems with exceptions
Failure in an exec_subprocess call will trigger cleanup,
but cleanup calls exec_subprocess, resulting in recursion.

Possible uninitialized variable in exec_subprocess_check_output.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-19 13:44:09 +02:00
Roman Zulak
eb624b555e CPT: Fix DLLVM_HOST_TRIPLE for Travis on OS X.
CMake thinks that the default output on OS X should be 32 bit.
Not sure if this is related to ccache or the env/virtualization they run.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-19 13:44:09 +02:00
Frederich Munch
3e65a6fee0 CPT: Fix git log hanging.
git log can hang waiting for stdin unless --no-pager argument is given.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-15 11:54:05 +02:00
Frederich Munch
6e13c66259 When building on Travis, use clone that Travis has already done. Saves some time, and necessary for pull-requests.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-13 19:44:21 +02:00
Vassil Vassilev
6e23bb5f1e Optionally, don't cleanup after build, helps debugging.
Debug file dumps should be done outside cpt.
2016-08-12 15:14:10 +02:00
Vassil Vassilev
ec1a6fec18 Typo. 2016-08-12 09:44:16 +02:00
Vassil Vassilev
c5b99ae797 Make the json findable when we only download and call cpt.py. 2016-08-11 12:30:28 +02:00
Vassil Vassilev
d18e9ecdba We shouldn't force using libcxx. 2016-08-10 19:06:40 +02:00
Vassil Vassilev
d48e229db4 Only import pip if needed.
It requires installing a package on the system.
2016-08-10 19:06:40 +02:00
Vassil Vassilev
5877f3acb2 Revert "Disable llvm's terminal support."
We need this for colored diagnostics.
2016-08-09 12:29:32 +02:00
Vassil Vassilev
0f5ab9641f Disable llvm's terminal support.
We have our own terminal library. Not linking against libs like tinfo and ncurses
makes our binaries more platform independent.
2016-08-09 12:29:32 +02:00
Bertrand Bellenot
1fe0bf1ad0 Enable stack trace & suppress error dialog on Windows.
Suppressing the error dialog on Windows prevent hangs on build nodes. One can also use an environment variable (Cling_GuiOnAssert) to enable/disable the error dialogs.
2016-08-08 12:14:09 +02:00
Vassil Vassilev
fa7e1b69bd Use the tag which is currently building. Keep the assert. 2016-08-07 23:48:58 +02:00
Vassil Vassilev
819708255e Tag can start with letter other than v. 2016-08-07 23:28:45 +02:00
Anirudha Bose
29341720f9 CPT: Use assets from locally cloned cling 2016-08-05 18:14:07 +02:00
Anirudha Bose
97a92f7d5f CPT: Use dmgbuild to generate DMG files 2016-08-05 18:14:07 +02:00
Anirudha Bose
4dfb99bb45 CPT: OSX fixes and better filtering of dist files
The Cling build system can use CPT, instead of directly
reading tools/packaging/dist-files.mk
2016-08-05 18:14:07 +02:00
Vassil Vassilev
6da56fb4e9 Rely on clang on osx. GCC is long gone. 2016-08-05 18:14:07 +02:00
Vassil Vassilev
c36e71769d Fix cmake invocation on osx. 2016-08-05 15:26:37 +02:00
Vassil Vassilev
7d5cbc070e Build only host target on windows. Simplify. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
c49e3c3111 Print a new line. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
165852930b Run the tests in a platform-independent way. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
396bc54c6f Do not build clang as a target. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
e28d6d0b99 The unzipped subfolder is dependent on the platform. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
3e5abd7067 We need latest cmake to run cling's testsuite. Simplify. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
efdd4833c9 Use recent visual studio. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
8fd09ba0cf Adjust url. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
3b57a0a378 Find latest nsis binary. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
4839f298c6 Sourceforge redirects to https. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
ad0d4d9b0d Build only target cling. Simplify. 2016-08-03 23:14:16 +02:00
Vassil Vassilev
4c824f89aa Make cpt debug friendly if --debug-on-error is passed.
Do not cleanup the workspace and dump a cmake log files.
2016-08-03 14:29:26 +02:00
Axel Naumann
6a4af89230 Find cling includes wherever the install is copied to. 2016-07-29 17:44:10 +02:00
Axel Naumann
112370dc17 Update instructions, now that the cling kernel is installed. 2016-07-27 02:12:47 +02:00
Axel Naumann
500473fc6c Move README.md out of kernel/ into Jupyter/. 2016-07-27 02:12:47 +02:00
Axel Naumann
78527f3493 Update contact info. 2016-07-22 19:29:12 +02:00
Frederich Munch
5a08af54ec llvm::sys::PrintStackTraceOnErrorSignal takes argv[0] as an argument in current llvm. 2016-07-22 12:44:11 +02:00
Frederich Munch
36e5b97051 Fix cling executable when building as shared-library. 2016-07-22 12:44:11 +02:00
Bertrand Bellenot
79c8fc1d7c Build cling.exe on Windows using the CMake object libraries
This allows to export the symbols from the executable, using the next version of CMake (not yet in the git master version of CMake)
2016-07-21 11:59:27 +02:00
Anirudha Bose
320ba93dd2 Update CPT for latest LLVM
* Drop support for configure, in favor of CMake.
   Latest LLVM makes cmake mandatory
 * Improvements to wget
 * Travis CI fixes
2016-07-19 20:44:11 +02:00
Axel Naumann
39dd90e183 Use LLVM_LINK_COMPONENTS; add_dependencies superseded by cling/CMakeLists.txt depending on tablegen-ed files. Cleanup linked libs. 2016-07-19 17:59:14 +02:00
Frederich Munch
a054b253d8 Fix CMake projects to link to proper libraries when built as shared library. 2016-07-19 17:59:14 +02:00
Axel Naumann
b949a701c8 Add new tools/libcling/CMakeLists.txt. 2016-07-19 10:59:32 +02:00
Axel Naumann
2e08275916 Build libcling.so based on OBJECT "library" in CMake. 2016-07-19 10:59:32 +02:00
Axel Naumann
7e9a74f3e4 Remove remnants of llvm configure/make build system. 2016-07-13 17:16:13 +02:00
Pere Mato
547d42919d Fix for ROOT-8267 - ROOT 6 master fails to compile if clang present in system include paths, picks up system's clang includes! 2016-07-13 14:59:39 +02:00
Anirudha Bose
1cec9757e9 CPT: Use GitHub API to fetch repo tags 2016-07-06 14:44:09 +02:00
Anirudha Bose
7245fc55e5 CPT: LLVM revision must correspond to checked out tag 2016-07-06 14:44:09 +02:00
Anirudha Bose
1184631657 CPT: Limit parallel builds to 4 cores 2016-07-06 14:44:09 +02:00
Anirudha Bose
3c651f3048 CPT: Better SSL detection 2016-07-06 14:44:09 +02:00
Anirudha Bose
2f01f7dbee CPT: Fix subprocess communication in Python 3 2016-07-06 14:44:09 +02:00
Anirudha Bose
9f18c590da Refactor and reformat code in CPT 2016-07-06 14:44:09 +02:00
Anirudha Bose
6bef401e59 Use modern syntax of "except" for dual compatibility with Python 2 and 3 2016-07-06 14:44:09 +02:00
Anirudha Bose
c63d7d1920 New method to get sources of LLVM and Clang
- prefer new method if the repos are hosted in Github
- fix an IndexError bug in home-grown wget()
2016-07-06 14:44:09 +02:00
Anirudha Bose
ee1a3d8c73 Change the default URLs of repositories
Repos hosted in GitHub have the advantage of a rich API.
The variables where this change will be reflected are:
LLVM_GIT_URL, WITH_LLVM_URL
CLANG_GIT_URL, CLANG_GIT_URL
CLING_GIT_URL, CLING_GIT_URL
2016-07-06 14:44:09 +02:00
Jan Christoph Uhde
a558c4cf02 Check for existing libclingJupyter, not whether it's executable. 2016-04-09 11:14:06 +02:00
Axel Naumann
434d039331 Add python2 compat as suggested by @hellpanderrr in Issue #1. 2016-04-09 10:59:14 +02:00
Axel Naumann
5c0001659b Bind Jupyter to MetaProcessor instead of Interpreter. 2016-04-08 16:59:08 +02:00
Axel Naumann
9d13663e83 Fix warning unsigned/signed comparison. 2016-04-01 20:59:07 +02:00
Axel Naumann
438427127f Fix warning: unused return value of write() 2016-04-01 16:14:10 +02:00
Axel Naumann
ca24eff6a0 Remove dupe directory. 2016-04-01 16:14:10 +02:00
Axel Naumann
3354c15777 Update to current output, URL. 2016-04-01 10:44:15 +02:00
Axel Naumann
b6d55f06f7 Comment out demo of cling::Jupyter::pushOutput(). 2016-03-31 21:14:06 +02:00
Axel Naumann
5021042a26 Formatting. 2016-03-31 14:59:13 +02:00
Bertrand Bellenot
9bf850678c Replace another _MSC_VER by LLVM_ON_WIN32 2016-02-23 12:44:04 +01:00
Bertrand Bellenot
7064c7ccf7 Remove a line forgotten in the previous patch 2016-02-23 09:29:07 +01:00
Bertrand Bellenot
2649f0d318 Fix cling compilation errors on Windows (with VS 2015) 2016-02-23 09:29:07 +01:00
Axel Naumann
a754fcc65e Update to Jupyter 4.1 binary names. 2016-02-08 11:44:07 +01:00
Axel Naumann
cc2ca03981 Fix cling GitHub Issue #1: libclingJupyter might be called .so 2016-02-08 11:44:07 +01:00
Axel Naumann
692dd6d7ee Use typical sub-llvm path. 2016-02-02 23:14:06 +01:00
Axel Naumann
8843128773 Clarify the Jupyter kernel install procedure. 2016-02-02 20:14:09 +01:00
Axel Naumann
95bba98231 Remove unused LICENSE file (kernel uses LICENSE from cling). 2016-02-02 20:14:09 +01:00
Axel Naumann
7644a681de Add missing #include, reported by 0xACE. 2015-12-20 23:59:05 +01:00
Axel Naumann
5c750a2c4c Replace debug path by proper error message. 2015-12-16 20:29:22 +01:00
Axel Naumann
0e7ddc74dc Add proper header. 2015-12-16 20:29:22 +01:00
Axel Naumann
de11680d8a We need process(): code can be decls or exprs. 2015-12-16 20:29:22 +01:00
Axel Naumann
f917ad872a Use evaluate(); process prints the value. 2015-12-16 20:29:22 +01:00
Axel Naumann
83fd5ac7d8 Fix linker invocatin. 2015-12-16 20:29:22 +01:00
Axel Naumann
ccf1075b83 Typos. 2015-12-16 20:29:22 +01:00
Axel Naumann
2217faef8e Also pass the MIME type length. 2015-12-16 20:29:22 +01:00
Axel Naumann
9888227456 Stringify eval result; use pipe fd. 2015-12-16 20:29:22 +01:00
Axel Naumann
e74f919b6e Code completion interfaces (though no real implementation yet). 2015-12-16 20:29:22 +01:00
Axel Naumann
da85321c42 Implement pushing of MIME data to Jupyter. 2015-12-16 20:29:22 +01:00
Axel Naumann
ebf4ef2588 Remove more debug output. 2015-12-16 20:29:22 +01:00
Axel Naumann
636ca85a0e Add destruction of Interpreter. 2015-12-16 20:29:22 +01:00
Axel Naumann
feaedbc9f4 Remove debug output. 2015-12-16 20:29:22 +01:00
Axel Naumann
774997ccc2 Debug: print interpreter address. Provide temporary dummy eval. 2015-12-16 20:29:22 +01:00
Axel Naumann
2f2c2151c0 Jupyter kernel support dylib. 2015-12-16 20:29:22 +01:00
Axel Naumann
dec6519991 Add Jupyter lib. 2015-12-16 20:29:22 +01:00
Axel Naumann
f1bf5f1a55 As agreed by Min, change license to that of cling. 2015-12-16 20:29:22 +01:00
Axel Naumann
66b7181bbb Use custom, non-decaying c_void_p as restype. 2015-12-16 20:29:22 +01:00
Axel Naumann
0511668144 set_next_input payload destroys processing of execute_result! 2015-12-16 20:29:22 +01:00
Axel Naumann
d63e3a4b08 DEBUG: Use llvm resource dir from install. 2015-12-16 20:29:22 +01:00
Axel Naumann
50556641f2 Fix pipe read. 2015-12-16 20:29:21 +01:00
Min RK
fae98382e3 add iopub pipe
pair programming with Axel
2015-12-16 20:29:21 +01:00
Axel Naumann
b571661050 Update the input code to contain magic (will be unload marker). 2015-12-16 20:29:21 +01:00
Axel Naumann
67c8a03d55 Show stringResult from eval. 2015-12-16 20:29:21 +01:00
Axel Naumann
a5e047f8c0 Capture cling_eval() stringResult. 2015-12-16 20:29:21 +01:00
Axel Naumann
c9a541858d Set restype of code completion interfaces. 2015-12-16 20:29:21 +01:00
Axel Naumann
fb03f8f326 Cleanup. 2015-12-16 20:29:21 +01:00
Axel Naumann
c1ccf5e244 Refactor, slightly. 2015-12-16 20:29:21 +01:00
Axel Naumann
40020a91ae Remove unused config 2015-12-16 20:29:21 +01:00
Axel Naumann
afa4a2784b Use libclingJupyter. 2015-12-16 20:29:21 +01:00
Min RK
7774e9bbfd capture stderr as well 2015-12-16 20:29:21 +01:00
Min RK
5cc49be53c require ipykernel 2015-12-16 20:29:21 +01:00
Min RK
01a82f38fd prepare for ctypes-cling API 2015-12-16 20:29:21 +01:00
Min RK
7f0088e7ba use Python script to get correct executable
rely on distutils shebang magic and PATH
2015-12-16 20:29:21 +01:00
Min RK
bcd56f23a0 require pexpect 3.3 for replwrap 2015-12-16 20:29:21 +01:00
Axel Naumann
b4f6d99948 Add proper header. 2015-12-16 20:29:21 +01:00
aonghus
ae7ad2c7c1 fix for c++ syntax highlighting 2015-12-16 20:29:21 +01:00
Axel Naumann
bf1c31fe37 We need process(): code can be decls or exprs. 2015-12-16 20:29:21 +01:00
Axel Naumann
be38d6071d Use evaluate(); process prints the value. 2015-12-16 20:29:21 +01:00
Min RK
ecac1351a9 Python 2 compatibility
closes #8
2015-12-16 20:29:21 +01:00
Min RK
0e5bc4dda9 IPython 3 compatibility 2015-12-16 20:29:21 +01:00
Axel Naumann
ac67953d30 Fix linker invocatin. 2015-12-16 20:29:21 +01:00
Min RK
b7134dd5cc dependencies 2015-12-16 20:29:21 +01:00
Axel Naumann
f405ea4ed2 Typos. 2015-12-16 20:29:21 +01:00
Min RK
986f7938dd ignore checkpoints 2015-12-16 20:29:21 +01:00
Axel Naumann
1045a89663 Also pass the MIME type length. 2015-12-16 20:29:20 +01:00
Axel Naumann
1552fe65b1 Stringify eval result; use pipe fd. 2015-12-16 20:29:20 +01:00
John Foster
b610b3a156 Make change from language name to codemirror name 2015-12-16 20:29:20 +01:00
Axel Naumann
6b35aef2f3 Code completion interfaces (though no real implementation yet). 2015-12-16 20:29:20 +01:00
John Foster
8e40c649f5 Change Codemirror mode to "clike"
Having the mode set to "c++" did not provide the proper code highlighting, but
"clike" does.  This was suggested to me by @Carreau.
2015-12-16 20:29:20 +01:00
Min RK
b2ffcc4076 install note 2015-12-16 20:29:20 +01:00
Axel Naumann
2352b5e745 Implement pushing of MIME data to Jupyter. 2015-12-16 20:29:20 +01:00
Jonathan Coe
8e8fb11831 fix module definition for setup.py 2015-12-16 20:29:20 +01:00
Axel Naumann
b21455cbd8 Remove more debug output. 2015-12-16 20:29:20 +01:00
Min RK
7a09b6c18b example notebook 2015-12-16 20:29:20 +01:00
Axel Naumann
b0a464eaec Add destruction of Interpreter. 2015-12-16 20:29:20 +01:00
Min RK
565e56cc7e allow specifying CLING_EXE env 2015-12-16 20:29:20 +01:00
Axel Naumann
5eb4756052 Remove debug output. 2015-12-16 20:29:20 +01:00
Min RK
8898522462 init cling kernel 2015-12-16 20:29:20 +01:00
Axel Naumann
a76fe309dd Debug: print interpreter address. Provide temporary dummy eval. 2015-12-16 20:29:20 +01:00