Code Monkey home page Code Monkey logo

Comments (13)

jonsequitur avatar jonsequitur commented on May 20, 2024 1

This should be fixed by dotnet/try#600.

from interactive.

jonsequitur avatar jonsequitur commented on May 20, 2024 1

Autocomplete support is not complete so this isn't indicative of a loading failure. Does code compile successfully against the imported library?

from interactive.

jonsequitur avatar jonsequitur commented on May 20, 2024 1

I've updated the link: https://github.com/dotnet/interactive/blob/master/docs/NotebooksLocalExperience.md.

Note that the Jupyter kernel is now in a new tool, Microsoft.dotnet-interactive, and no longer part of Microsoft.dotnet-try.

from interactive.

mehmetakbulut avatar mehmetakbulut commented on May 20, 2024

Thank you @jonsequitur. Do you have any clue which release / when the contents of that PR will be available on a feed?

from interactive.

jonsequitur avatar jonsequitur commented on May 20, 2024

Every PR that merges produces a new package in this feed: https://dotnet.myget.org/F/dotnet-try/api/v3/index.json. You can grab the latest by running this in your console:

> dotnet tool update -g dotnet-try --add-source https://dotnet.myget.org/F/dotnet-try/api/v3/index.json

from interactive.

jonsequitur avatar jonsequitur commented on May 20, 2024

The fix for this is now available in MyGet feed. Please give it a try and let us know if you see any issues.

from interactive.

mehmetakbulut avatar mehmetakbulut commented on May 20, 2024

It looks like the error is no longer displayed with absolute paths but behavior is same as before (i.e. autocompletion doesn't work for types from the imported library)

Relative paths still don't seem to be working. (tried referencing from both jupyter's workspace root and kernel's working directory)

from interactive.

mehmetakbulut avatar mehmetakbulut commented on May 20, 2024

Gotcha. Yes, code compiles great when importing libraries with absolute paths.

How about relative paths? I see them working fine in csi but with .NET Kernel and Jupyter, it complains that the path is wrong. (same on both Win10 and Ubuntu 18.04)

from interactive.

jonsequitur avatar jonsequitur commented on May 20, 2024

I don't see why a relative path shouldn't work but maybe the working directory is wrong or unclear. I'll give it a look.

from interactive.

bryanrcarlson avatar bryanrcarlson commented on May 20, 2024

I'm seeing this error in version 1.0.19553.4:

#r "C:\Dev\Projects\CafModelingRegionalSoilConditioningIndex\Csip\src\dotnet\Csip.Common\bin\Debug\netstandard2.1\Csip.Common.dll"
Invalid: Command: #r C:\Dev\Projects\CafModelingRegionalSoilConditioningIndex\Csip\src\dotnet\Csip.Common\bin\Debug\netstandard2.1\Csip.Common.dll

When I update to 1.0.19620.2 via:

> dotnet tool update -g dotnet-try --add-source https://dotnet.myget.org/F/dotnet-try/api/v3/index.json

Tool 'dotnet-try' was successfully updated from version '1.0.19553.4' to version '1.0.19620.2'.

The error goes away, but only because the kernel crashes.

[W 09:22:55.774 LabApp] KernelRestarter: restart failed
[W 09:22:55.774 LabApp] Kernel bb768025-c107-4a3e-b5fa-84856efe62da died, removing from map.
[W 09:23:40.784 LabApp] Timeout waiting for kernel_info reply from bb768025-c107-4a3e-b5fa-84856efe62da
[E 09:23:40.784 LabApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: bb768025-c107-4a3e-b5fa-84856efe62da)
[E 09:23:40.785 LabApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: bb768025-c107-4a3e-b5fa-84856efe62da)

from interactive.

jonsequitur avatar jonsequitur commented on May 20, 2024

@bryanrcarlson This bug was fixed in dotnet/try#609 but the fix is only available in the new dotnet-interactive, which is in the same MyGet feed as dotnet-try. I've updated the install instructions here: https://github.com/dotnet/interactive/blob/master/docs/NotebooksLocalExperience.md.

Give that a try.

from interactive.

bryanrcarlson avatar bryanrcarlson commented on May 20, 2024

@jonsequitur That seemed to have fixed it! Thanks!

from interactive.

Gimly avatar Gimly commented on May 20, 2024

@jonsequitur Could you copy your updated install instructions here ? Looks like the linked page doesn't exist and I'm experiencing the same issue as @bryanrcarlson. Thanks !

I've tried installing microsoft.dotnet-try using the following command

dotnet tool install -g --add-source "https://dotnet.myget.org/F/dotnet-try/api/v3/index.json" Microsoft.dotnet-try

I'm getting the following output when trying to open a C# Jupyter notebook.

[I 14:31:06.741 NotebookApp] Creating new notebook in
[I 14:31:08.111 NotebookApp] Kernel started: 09cd8fef-9d77-45b8-8859-298b9836062a
Directory does not exist: jupyter
Unrecognized command or argument '--default-kernel'
Unrecognized command or argument 'csharp'
Unrecognized command or argument 'C:\Users\xxx\AppData\Roaming\jupyter\runtime\kernel-09cd8fef-9d77-45b8-8859-298b9836062a.json'

dotnet-try:
  Interactive documentation in your browser

Usage:
  dotnet-try [options] [<RootDirectory>] [command]

Arguments:
  <RootDirectory>    Specify the path to the root directory for your documentation

Options:
  --add-package-source <NuGet source>    Specify an additional NuGet package source
  --package <name or .csproj>            Specify a Try .NET package or path to a .csproj to run code samples with
  --package-version <version>            Specify a Try .NET package version to use with the --package option
  --uri <uri>                            Specify a URL or a relative path to a Markdown file
  --enable-preview-features              Enable preview features
  --log-path <dir>                       Enable file logging to the specified directory
  --verbose                              Enable verbose logging to the console
  --port <port>                          Specify the port for dotnet try to listen on
  --version                              Show version information
  -?, -h, --help                         Show help and usage information

Commands:
  demo                       Learn how to create Try .NET content with an interactive demo
  verify <RootDirectory>     Verify Markdown files in the target directory and its children.
  publish <RootDirectory>    Publish code from sample projects to Markdown files in the target directory and its
                             children.

from interactive.

Related Issues (20)

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.