C# Jupyter Notebook - c#

I hope no one will consider this question off topic. I am about to start exploring using the C# kernal in a Jupyter notebook. I see that there are several alternatives, some appear to be dated. I'm not really interested in exploring them all, I just want something that will work well enough for a demo. The purpose is evaluating this for teaching a post-secondary course in C# programming --- we are now using Visual Studio exclusively, and we feel the need for something a little more targeted and possibly amenable to some automation.
Question: Of the various alternatives available, which ones should I avoid? Which ones seem to have fewer problems using?
I currently use Jupyter for Python development, so at least I have some familiarity with the technology and can author a notebook.

You can try this open source project zabirauf/icsharp: C# kernel for Jupyter. Which can be used in Windows/MacOS/Linux. Wish it be helpful for you.
Below is a video about icsharp:
https://www.youtube.com/watch?v=tKYyjPCiKpM

According to an announcement on the 6th of November 2019...
Try .NET has grown to support more interactive experiences across the web with runnable code snippets, interactive documentation generator for .NET core with dotnet try global tool, and now .NET in Jupyter Notebooks.
Details can be found in the provided link (https://devblogs.microsoft.com/dotnet/net-core-with-juypter-notebooks-is-here-preview-1/)

Try this https://github.com/tlinnet/csharp-notebook
It's a Docker image with C# Kernel i Jupyter Notebooks and includes >200 Notebooks with C#. There is links to try online on mybinder.org

Related

Working with DjVu with .NET

I need to open DjVu files in my program, so I'm looking for some library. It must be free library, opensource would be better. When I tried to google it, I found only links to some books about .Net in *djvu format :D
This is an old question, but I wanted to include that I just uploaded a fully managed Djvu reader written in C#. If you make improvements please share. https://github.com/Telavian/DjvuNet
The following techniques may be useful.
First technique:
1) http://javadjvu.foxtrottechnologies.com/ djvu support for java
2) use ikvm.net to convert java code in dot net
it is tedious but can be tried and i think best method
Second technique:
http://twit88.com/blog/2009/02/28/open-source-windows-djvu-viewer/
a viewer to open djvu files
for more detail go through
sourceforge djvu
you can get basic details from here

extracting nouns,noun phrases,adjectives verbs from text file corpus using visual c#

i am doing a project wherein i have to extract nouns adjectives noun phrases and verbs from text files(.doc) format.
i have a corpus of around 75 such files. i have accessed net to find about it and i came across POS tagging in python using nltk.
as my project is in c# (using visual studio 2008) i need a code to do so.
i have tried wordnet api for the same and even sharpnlp but as i am a newbie i found these tough to integrate with my project.
can anybody please suggest me simpler code to do so using something like vocabulary etc. plz help me guys.
thanx.
I worked in NLP (Natural Language Processing) for an industry leader for a while and what you want to do is no trivial task. I know one of the creators of nltk and I have used it myself; it's a high quality open source tool and I'd recommend you use it (do you have a particularly compelling reason to use C#?)
POS tagging is typically implemented by training a model of language on hand-annotated data, then applying that model to new text, predicting the parts of speech and giving a confidence . nltk has tools that do this, and they also have some models (if I'm not mistaken).
You'll find that most tools are written in C++, Java, and Python. If you don't know any of the languages look at this as an excellent opportunity to learn something!
See Wikipedia, especially the links at the bottom, for more information and other software available to use for such tagging.
Christopher is correct in his statement that NLP implementations are no picnic. However, I've recently looked into a viable solution using OpenNLP in a .NET project with a rudimentary PoS parser. In my example I am looking for noun phrases, but it shouldn't be too difficult a text to find other fragments as well. I find the OpenNLP Tools Models for 1.5 to be sufficient for my purposes.
I realize this answer is woefully late for the questioner, but hopefully it will give others some inspiration with this difficult field to get into.
Extracting noun phrases with contextual relevance in .NET using OpenNLP
Kindly read through this article.
Easy Integration of SharpNLP with C# Visual Studio Project
In this article, I have given a step by step way of integrating SharpNLP with C# project and have given sample code snippets for specifically address your issue such as Sentence Splitting, tokenizing and POSTagging.
Try this out and I will be able to help you with the problems you encounter.

How to write FireFox extension with Visual Studio using C# programming language?

I was wondering if it's possible to write Firefox extension using .Net Framework?
Had anybody such experience in writing Firefox extensions using C# programming language?
Any good sites or guidelines would be very helpful.
FFPlugin http://img81.imageshack.us/img81/3049/ffplugin.jpg
Here is an example of what I need. Extension to enter phone number and to send SMS Message.
I draw it in Paint, so I'm sorry for having no artistic touch.
Assuming you're asking about writing an extension (and not a plugin), the best place to get started is with the info at the Mozilla Dev Center.
Konamiman is correct: extensions are mostly XUL (an XML grammar) and Javascript, packaged into a ZIP file with the extension .xpi. The various links from the page I linked should answer basic questions, like the one you posted above:
https://developer.mozilla.org/en/Building_an_Extension
https://developer.mozilla.org/en/Extension_Frequently_Asked_Questions
Firefox extensions are written primarily in Javascript. See here: http://www.rietta.com/firefox/Tutorial/backend.html. So unless you can find a way to convert C# code/.NET Framework objects to Javascript, you are out of luck.
As has been observed by other respondents, Firefox extensions are primarily written in Javascript: but you're in luck, because Script# is a free tool that enables developers to author C# source code and subsequently 'compile' it into Javascript.
I'm not sure how you'd do for C#, but you can use XPCOM to call native code libraries: that's how the Glasser extension, for instance, is able to use the Windows-specific Aero effects.
IBM hosts a very good XPCOM tutorial at DeveloperWorks.

Steps to debug/step through some java code?

yes, this is a very noobish question. I'm a .NET developer and I need to step through some java code to see exactly what is going on so i can port some java into some c#. So far i've not needed to do that .. until now.
So .. i have absolutely zero knowledge of java debugging. So can someone please explain in blond-speak how i can debug the following java program, and specifically ... this line/method in the following
=> code source zipped, found here.
=> line of code: \src\com\yahoo\platform\yui\compressor\JavaScriptCompressor.java :: line 550 ... buildSymbolTree();
Now, to add to my embarassment, I have no idea what program i need to download, what steps i need to do to add this java project, add a breakpoint, start debugger, etc.
I would appreciate it if someone could provide some steps to doing this.
Oh .. this will be all installed on a virtual pc running windows xp.
The only thing this virtual pc has installed on it (currently) is windows xp & the java runtime (jre-6u12....)
Thanks kindly!
Steps (will update when more info comes in)
Grab/install NetBeans Ide from here. (Program to debug java with).
(how to open an existing project?)
(how to make a break point?)
(how to start debugging .. including defining the command line args to read in the file?)
(how to make a watch item?)
Wiki Mode
Made this a wiki so other people can edit/update the steps.
Pick up netbeans or Eclipse; they're decent IDEs with decent debuggers. If you're an old fart like me, you can also use jdb, which ships with the rest of the java stuff. That's a command line tool, similar in concept to dbx and gdb.
Okay, looks like maybe it's even more detail needed.
You're going to need a Java environment. if you grab either of those IDEs you'll be able to pick one up. However, you can go to http://java.sun.com and download a JDK for your environment. You want a JDK, not a JRE (Java Runtime Environment) because you want the compilers and tools.
Another good resource is the Java Tutorial, which will lead you through the basics of setting up aqnd such (and teach you the language if you want to go into it more deeply.)
One warning: C# is almost but not quite wholly unlike Java, but it's hidden under very similar syntax. Be careful in your translation that you're getting Java that means what you think it means.
You should be able to transfer your debugging skils from VS, since the debuggers across netbeans & eclipse are very smiliar. Assigning breakpoints is very much the same and I'm almost certain the same hotkeys are used to step through the code.
Below are some nice tutorials which may be of use to you.
Eclipse Debugging Tutorial
NetBeans Debugging
I have not used this in a long time... but it is a stand alone debugger: http://code.google.com/p/jswat/
I use Netbeans myself. For what you want to do, if you try Netbeans make a new Java project from existing sources and go from there.
If you have used the Visual Studio debugger then Netbeans, Eclipse, JSwat, etc... should be easy enough to figure out.

C# and .NET FOLDERID

How do I use Windows Vista's FOLDERID API in order to retrieve filepaths for "known folders" such as System or Windows? I've seen some APIs but I don't know how to import them properly. And yes, I know this is a very newbie question, but I spent a half hour googling and couldn't find the answer; I'd also appreciate a way to find an answer to questions like this in the future. :-)
Edit 1: So apparently the relevant functions are included inside of a DLL, and not any "proper" C# class/library that can be imported. The pinvoke syntax might work, although I was hoping for an OOP interface, not a function. Will test.
Edit 2: So I am very new to C# and don't know what a managed interface is. System.Environment.GetFolderPath is perfect.
Take a look at PInvoke SHGetKnownFolderPath
There's also a managed API:
Environment.GetFolderPath
but it doesn't contain all the folders.
This morning I read about Vista Bridge. It may help.
"Many of you don’t know about the Vista Bridge sample library, what can it do or even where you can find it. Let’s start with the basics; i.e. definitions. Vista Bridge is a sample library that contains managed wrappers for a number of Windows Vista APIs that are not exposed in the .NET Framework. The wrappers include common Open and Save file dialogs and new Vista advanced task dialogs. So, where to download it? There are three ways to obtain the sample library. It’s included in both the Windows SDK for Windows Vista Update and in the newer Window SDK for Windows Server 2008 and .Net Framework 3.5; or a third option is to download the Vista Bridge sample library which is part of the Windows SDK Cross Technology samples. I recommend downloading the Windows SDK for Windows Server 2008 and .Net Framework 3.5, but if you don’t have the network bandwidth or just want the samples, then the last option should be the most suitable.
..."

Categories