Skip to content

FilippoPolo/IfSharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IfSharp

F# implementation for Jupyter. View the Feature Notebook for some of the features that are included.

There is documentation for the existing release version: documentation we're updating this for the Jupyter branch.

Compatibility

IfSharp supports Jupyter 4.0 and 4.1 and works with both Python 2.X and Python 3.X

If you need IPython 1.x or 2.x support please see the archived https://github.com/fsprojects/IfSharp/tree/ipython-archive

Automatic Installation

Previous releases for the IPython notebook are here: release repository. Automatic installs for Jupyter will be provided in the future.

Running inside a Docker container

The jupyter branch has a Docker file for running the F# kernel v. 3.0.0-alpha in a container. Build the container with:

docker build -t ifsharp:3.0.0-alpha .

Run it with:

docker run -d -v your_local_notebooks_dir:/notebooks -p your_port:8888 ifsharp:3.0.0-alpha

The container exposes a volume called notebooks where the files get saved. On Linux, connect to the notebook on http://localhost:your_port and, on Windows, use http://your_docker_machine:your_port.

Manual Installation (Windows)

  1. Install Anaconda
  2. Install Jupyter
  3. Download current zip release v3.0.0-alpha2
  4. Run IfSharp.exe

Jupyter with IfSharp can be run via "jupyter notebook" in future

Manual Installation (Mac)

  1. Install Anaconda
  2. Install Jupyter
  3. Install Mono (tested 4.2.4)
  4. Download current zip release v3.0.0-alpha2
  5. Unzip the release then run mono IfSharp.exe
  6. (workaround: Copy ~/.local/share/jupyter/kernels/ifsharp to /usr/local/share/jupyter/kernels/ifsharp)
  7. Run jupyter notebook

The workaround is for IPython/Jupyter changes will be fixed in a future release.

Manual Installation (Linux)

  1. Install Jupyter via pip or Anaconda etc.
  2. Install Mono (tested 4.2.4) and F# (tested 4.0).
  3. Download the current IfSharp zip release v3.0.0-alpha2
  4. Unzip the release to a safe place such as ~/opt/ifsharp.
  5. Run mono ~/opt/ifsharp/IfSharp.exe to set up the jupyter config files in ~/.jupyter/ and ~/.local/share/jupyter/kernels/ifsharp/.
  6. (For XPlot) From the install directory ~/opt/ run mono paket.bootstrapper.exe then mono paket.exe install
  7. Run jupyter notebook, the IfSharp kernel should now be one of the supported kernel types.

Screens

Intellisense

Intellisense Example #1


Intellisense Example #2


Intellisense Example #3 With Chart


Intellisense Example #4 #r Directive


Intellisense Example #5 #load Directive


Integrated NuGet

NuGet Example

Inline Error Messages

Inline Error Message

About

F# Profile for iPython Notebook 1.x and 2.x

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 59.4%
  • F# 25.5%
  • JavaScript 11.0%
  • CSS 3.0%
  • Inno Setup 0.5%
  • C# 0.4%
  • Other 0.2%