Git Product home page Git Product logo

iclips's People

Contributors

noxdafox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

iclips's Issues

Cannot read property 'varRefreshCmd' of undefined

image

[code]
require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900 TypeError: Cannot read property 'varRefreshCmd' of undefined
at main.js?v=20191129150006:188
at Object.execCb (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1690)
at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:865)
at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1177)
at Module.init (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:783)
at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1453

Multi-line entry in Jupyter Console cannot end % magic

I tried two pieces of given sample code for i. %% define-python-function and ii. %% python and find that Enter twice does not execute the code, and the multi-line entry can't break. Maybe a Jupyter Console (6.2.)) bug or compatibility. Seems fine for non-magic codes.

Ritchie

"watch statistics" command does not print out "Run time" or "rules per second" statistics with "run" command

Hi,

In iCLIPS, if statistics are being watched via "watch statistics" command, and the "run" command is performed with rules on the agenda, the generated output does not show the "Run time" or the "rules per second" statistics.

To reproduce:

  1. Type (watch statistics) in cell 1 and run it
  2. Type (deftemplate emergency (slot type)) in cell 2 and run it
  3. Type (deftemplate response (slot action)) in cell 3 and run it
  4. Type the following rule in cell 3 and run it:
(defrule fire-emergency "An example rule"
  (emergency (type fire))
  =>
  (assert (response
  (action activate-sprinkler-system))))
  1. Type (assert (emergency (type fire))) in cell 4 and run it
  2. Type (run) in cell 5 and run it
  3. You will notice that the "Run time" and "Rules per second" statistics are not shown. The output generated is:

1 rules fired
2 mean number of facts (2 maximum).
0 mean number of instances (0 maximum).
1 mean number of activations (1 maximum).

  1. Download the jupyter-notebook as .clp file
  2. Load .clp file in CLIPS IDE
  3. Notice the generated output for the (run) command contains "Run time" and "Rules per second" statistics

Please advise. Thanks!

Tab Autocompletion initially works but apparently stops working after running Jupyter notebook cells that generate output

Hi,

I have noticed that tab autocompletion in iCLIPS works when the CLIPS kernel starts, but as soon as I run a cell that generates some sort of output, the tab autocompletion no longer works.

To reproduce:

  1. type the command (facts) in Cell 1 --> you will notice that tab autocompletion works
  2. run Cell 1 with shift+enter -> no output is produced
  3. type the command (assert (number-list 1 2 3)) in Cell 2 -> you will notice that tab autocompletion still works
  4. run Cell 2 with shift+enter -> output "(number-list 1 2 3)" is produced
  5. type the command (facts) in Cell 3 --> you will notice that tab autocompletion does not work any more
  6. shutdown then restart the CLIPS kernel
  7. type the command (assert (number-list 4 5 6)) in Cell 4 --> you will notice that tab autocompletion works
  8. run Cell 4 with shift+enter -> output "(number-list 4 5 6)" is produced
  9. type the command (facts) in Cell 5 --> you will notice that tab autocompletion does not work any more

Please advise. Thanks!

Comment before function declaration causes error

Hi,

When I place a comment before a function declaration in iCLIPS, I get the message:

[EXPRNPSR3] Missing function declaration for '[put the name of your function here]'.

Attached is a screenshot showing a commented defrule (taken from Giarratano and Riley's "Expert Systems: Principles and Programming", 4th Edition).

It seems that the comment is only causing an issue before the function definition and not inside it.

Please advise. Thanks.

2022-03-13_14-28-08

ImportError: libclips.so: cannot open shared object file: No such file or directory

I'm trying to create a docker container with your library by i'm getting that error

I used ubuntu:xenial image from docker hub
I installed all dependencies following the documentation

Traceback (most recent call last):
  File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.5/dist-packages/iclips/clips_kernel.py", line 26, in <module>
    import clips
  File "/usr/local/lib/python3.5/dist-packages/clips/__init__.py", line 30, in <module>
    from clips.error import CLIPSError
  File "/usr/local/lib/python3.5/dist-packages/clips/error.py", line 32, in <module>
    from clips.router import Router
  File "/usr/local/lib/python3.5/dist-packages/clips/router.py", line 5, in <module>
    from clips._clips import lib, ffi
ImportError: libclips.so: cannot open shared object file: No such file or directory

Download as CLIPS (clp) file gives error

Hello,

When trying to download the Jupyter notebook as a CLIPS file via "File -> Download As -> CLIPS (clp)", I get the following error on a browser new tab:

500 : Internal Server Error
The error was:
nbconvert failed: FileExtension trait 'file_extension' does not begin with a dot: 'clp'

Please advise. Thanks!

iclips installation (W10)

Context: I use Windows 10 with Python 3.8.5.

I have installed CLIPS 6.31 using windows 64 bits installer and also iclips through pip: pip install iclips.

There were no errors when installing the above, but when i tried to run jupyter console --kernel clips I get the following exception thrown:

jupyter_client.kernelspec.NoSuchKernel: No such kernel named clips

This may not be an iclips specific issue, but I would be grateful if someone could help me.

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.